如何清除的OutputCache的网站,无需重新启动应用程序 [英] How to Clear OutputCache for Website without Restarting App
本文介绍了如何清除的OutputCache的网站,无需重新启动应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法清除或重置整个网站的OutputCache没有重新启动?
Is there a way clear or reset the outputcache for an entire website without a restart?
我刚开始在站点上使用的OutputCache,当我犯了一个错误的设置它,我需要一个网页,我可以浏览到会重置。
I'm just starting to use outputcache on a site and when I make a mistake in setting it up I need a page I can browse to that will reset it.
推荐答案
这应该做的伎俩:
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim path As String
path="/AbosoluteVirtualPath/OutputCached.aspx"
HttpResponse.RemoveOutputCacheItem(path)
End Sub
这篇关于如何清除的OutputCache的网站,无需重新启动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文