Bri*_*ght 10 asp.net outputcache
有没有方法清除或重置整个网站的outputcache而不重启?
我刚开始在网站上使用outputcache,当我在设置时出错时,我需要一个可以浏览的页面来重置它.
这应该做的伎俩:
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
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8773 次 |
| 最近记录: |