Is the page output cache stored in an ASP.NET cache object?

I need to enable caching in my asp.net application, but I don't want to use web server memory to store cache objects. If I add a page directive to cache output, will the page be stored in the asp.net cache object?

Thanks!

+6
source share
2 answers

By default, storing content in memory is the same as HttpRuntime.Cache (actually in the internal HttpRuntime.CacheInternal , which behaves similar to the public cache), but in ASP.NET 4.0 you can write your own provider to store the content, but you want to.

This is a good introduction to the implementation of the provider and its use in your application: http://dotnet.dzone.com/news/aspnet-output-cache-provider

+5
source

It depends on what you set as OutputCacheLocation

take a look at:

http://msdn.microsoft.com/en-us/library/system.web.ui.outputcachelocation.aspx

+1
source

All Articles