asp.netiis-7outputcache

Manually refresh output cache in IIS7


Problem description: On our website we use standard asp cache with duration set to 5h.

It works fine, but sometimes the publisher add some special content that need to be showed impatiently on many different sub-pages (example some promoted article).

That's what I need to do it's easy to use page like this:

mydomain.com/admin/clear-all-website-output-cache.aspx.

I want to clear SERVER SIDE CACHE.

Thanks for help.

we use: IIS7, ASP.net 3.5


Solution

  • Use cache dependency on some file, the cache will expire when the file changed.