开发者

Is the output cache on an Asp.Net page limited to session per user?

开发者 https://www.devze.com 2023-04-09 06:17 出处:网络
Just wondering If I set a page up to use the cache for 30 seconds is this only served to the same user that accessed the page first time ro开发者_Go百科und or is it configurable?You can cache on a per

Just wondering If I set a page up to use the cache for 30 seconds is this only served to the same user that accessed the page first time ro开发者_Go百科und or is it configurable?


You can cache on a per-user basis, but generally the ApplicationCache is best used for - you guessed it - application-wide data. E.g. the contents of an autosuggest list could be cached to avoid reading it from the DB for every request.

Output caching is similar and you can set the duration, etc. in Page directives.

It's a potentially big topic, but I'd take a look here to start off.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号