Tech Talk A software developer on all things tech, and then some


Clear the ASP.Net Application Cache

I needed a quick way to clear the cache when I was debugging an issue, and couldn't seem to find anything that worked right away online. So, created a quick foreach to handle cleaning everything up. Short and simple, thought I'd post to help anybody else out having the same issue

foreach(DictionaryEntry item in HttpContext.Current.Cache)

HTH, thanks!

Filed under: C# Leave a comment
Comments (0) Trackbacks (0)

No comments yet.

Leave a Reply

No trackbacks yet.

%d bloggers like this: