我怎样才能查看ASP.NET的OutputCache的内容是什么? [英] How can I view the contents of the ASP.NET OutputCache?
问题描述
有什么办法,我可以列出当前保存在的OutputCache网页?
Is there any way that I can list the pages which are currently stored in the OutputCache?
路径只是一个列表会做,但如果有一种方式来获得有关各个项目的更多信息(到期日等),那么就更好了。
Just a list of paths would do, but if there's a way to get more information about each item (expiry etc), then all the better.
推荐答案
据我记得Cache是独立的,并有每个应用程序域只是其中的实例。的OutputCache使用它也和它无非只是一个Response.Cache多。所以我觉得缓存的网页应该是可以通过缓存(对不起,我不能在此刻检查)。而下面的文章将帮助你在这种情况下:结果
HTTP://www.$c$cproject.com/KB/session/exploresessionandcache的.aspx 结果
http://aspalliance.com/CacheManager/Default.aspx
As far as I remember Cache is a singleton and there is only one instance of it per app domain. OutputCache uses it too and it's nothing more than just a Response.Cache. So I think cached pages should be available through the Cache (Sorry, I can't check this at the moment). And the following articles should help you in this case:
http://www.codeproject.com/KB/session/exploresessionandcache.aspx
http://aspalliance.com/CacheManager/Default.aspx
这篇关于我怎样才能查看ASP.NET的OutputCache的内容是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!