How to view the contents of an ASP.NET OutputCache?

Is there a way I can list the pages that are currently stored in OutputCache?

Just a list of paths will do, but if there is a way to get more information about each element (expiration, etc.), then everything is better.

+4
caching outputcache
source share
3 answers

As far as I remember, the cache is singleton, and there is only one instance per application domain. OutputCache also uses it, and it is nothing more than just Response.Cache. Therefore, I think that cached pages should be accessible through the cache (sorry, I canโ€™t verify this at the moment). And the following articles will help you in this case:
http://www.codeproject.com/KB/session/exploresessionandcache.aspx
http://aspalliance.com/CacheManager/Default.aspx

+1
source share

Here is a small tool that I wrote that will allow you to view the contents of your cache. You can also view file dependencies and delete cache.

https://github.com/azamsharp/WIYC

+1
source share

Here is another tool that displays the Usercontrol cache (Webforms), and I am expanding it to also display the output cache data

https://github.com/chandarmk/InternalCacheHandler

0
source share

All Articles