When should I not set the @OutputCache Shared Attribute attribute in Webforms?

Reading @ Documentation OutputCache on MSDN I noticed an attributeShared

Doc says:

Are common

A Boolean value that determines whether user control output can be

Used in conjunction with multiple pages. default is false. See the Notes section for more information.

Note:

If you set the Shared attribute to true, cached user control output can be accessed through multiple web forms on the page. If you do not set it to true, the default behavior is to cache a single version of user control for each page that contains this user control. You can save significant memory by allowing the Shared attribute. For more information, see Caching an ASP.NET Page.

, , true , , -.

: Shared true?

+3
1

, .

, , , ( ) - , .

+4

Source: https://habr.com/ru/post/1783114/


All Articles