How to clear cache on IIS quickly and easily?

Hello, We have a website on IIS, Windows server and we are using ASP.NET MVC OutputCache, now we have updated code for few pages, but server is still showing cached pages, so how can I remove cache or clear cache on IIS, without making website go down?


Asked by:- neena
: 207 At:- 12/15/2021 3:51:55 PM
IIS clear cache IIS

1 Answers
profileImage Answered by:- vikas_jk

You can clear IIS cache by navigating to below folder on Window server and delete temporary files

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files


You can also Recyle the application pool.

By opening IIS, then select "Application Pool" and then select the website for which you want to clear cache, then on right hand side pane, click "recycle".

You can Recyle application pool even when there is web-application load and doesn't require it to go down.


If none of the above solution works, run iisreset from an elevated command prompt, which will restart IIS and all hosted applications. (Note: This will take your website down for few mins.)

At:- 12/15/2021 4:24:26 PM
Excellent thanks for details, Clearing temporary files worked for me. 0
By : neena - at :- 12/15/2021 4:30:34 PM

Login/Register to answer
Register directly by posting answer/details

Full Name *

Email *

By posting your answer you agree on privacy policy & terms of use