Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Clear OutputCache for Website without Restarting App

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.

like image 748
Brian Boatright Avatar asked Aug 31 '08 21:08

Brian Boatright


1 Answers

This should do the trick:

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
like image 192
Ethan Gunderson Avatar answered Sep 19 '22 14:09

Ethan Gunderson