Created
March 31, 2014 14:55
-
-
Save axrwkr/9894198 to your computer and use it in GitHub Desktop.
Clear the asp.net cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script language="C#" runat="server"> | |
protected void Page_Load(Object s, EventArgs e) | |
{ | |
foreach (DictionaryEntry entry in HttpContext.Current.Cache){ | |
HttpContext.Current.Cache.Remove(entry.Key.ToString()); | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment