Is there a way clear or reset the outputcache for an entire website without a restart?
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.
Is there a way clear or reset the outputcache for an entire website without a restart?
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.
This should do the trick:
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim path As String
path="/AbosoluteVitualPath/OutputCached.aspx"
HttpResponse.RemoveOutputCacheItem(path)
End Sub
This question has already been asked and answered http://stackoverflow.com/questions/11585/clearing-page-cache-in-aspnet