<p>Is there a way clear or reset the outputcache for an entire website without a restart?</p>

<p>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.</p>

[{'answer_id': 37167, 'author': 'Ethan Gunderson', 'author_id': 2066, 'author_profile': 'https://Stackoverflow.com/users/2066', 'pm_score': 4, 'selected': True, 'text': '<p>This should do the trick:</p>\n\n<pre><code>Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)\n\n Dim path As String\n path="/AbosoluteVirtualPath/OutputCached.aspx"\n HttpResponse.RemoveOutputCacheItem(path)\n\nEnd Sub\n</code></pre>\n'}, {'answer_id': 12877327, 'author': 'Andrus', 'author_id': 742402, 'author_profile': 'https://Stackoverflow.com/users/742402', 'pm_score': 0, 'selected': False, 'text': '<p>Add the following code to controller or to page code:</p>\n\n<pre><code>HttpContext.Cache.Insert("Page", 1);\nResponse.AddCacheItemDependency("Page");\n</code></pre>\n\n<p>To clear output cachne use the following command in controller:</p>\n\n<pre><code>    HttpContext.Cache.Remove("Page");\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/37101', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3747/']