Is page output cache stored in ASP.NET cache object?
Asked Answered
H

2

6

I need to enable caching in my asp.net application, but I do not want to use the webserver's memory for holding cache objects. If I add the page directive for output caching will the page be stored in the asp.net cache object?

Thanks!

Haggard answered 2/11, 2010 at 16:7 Comment(0)
O
5

The default behaviour is to store the content in memory in the same way as HttpRuntime.Cache (actually in an internal HttpRuntime.CacheInternal which behaves similarly to the publicly visible cache), but in ASP.NET 4.0 you can write your own provider to store the content however you wish.

This a nice introduction to implementing a provider and using it in your application: http://dotnet.dzone.com/news/aspnet-output-cache-provider

Outbreak answered 2/11, 2010 at 17:50 Comment(0)
D
1

It depends what you set as OutputCacheLocation

have a look at:

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

Damsel answered 2/11, 2010 at 17:38 Comment(1)
OK..So now assume we are caching in server...then where can we see output cached objects during debugging?Coca

© 2022 - 2024 — McMap. All rights reserved.