2

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

2 Answers 2

3

See this ServerFault question: Will an IIS reset force cached items to be resent?

This says that you need to use IISRESET (or reset IIS any other way) to do it.

I assume recycling the application pool of the application will have the same effect. It's a good practice to have one application pool per application, so, this should be less problematic than resetting IIS if there are other critical applications.

If your app pool is shared with other applications, create a new one, and change the app pool in the application properties to the new pool. Likely will have a similar effect.

BTW, I do not think stopping and starting the website (assuming likely the app has its own website) will have a similar effect, as it will not stop the process instance that holds the cache, which is represented by app pool. Not 100% sure though.

Sign up to request clarification or add additional context in comments.

Comments

2

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.