locked
Does IISReset will also Reset the Cache RRS feed

  • Question

  • User1135668169 posted

    Does all cache will be reset, if user reset the IIS.

    1) File Cache

    2) Time Cache etc....

    Wednesday, May 18, 2011 8:49 AM

Answers

  • User1508394307 posted

    Yes, by default iisreset stops and restart the Windows Process Activation Service (WAS), and the World Wide Web Publishing Service (WWW Service). 

    Don't forget that there is /REBOOT option that can be used to reboot the entire server.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 18, 2011 10:19 AM
  • User-1359474226 posted

    When you do an IISReset the IIS cache will be cleared. It will start building the cache again based on requests. If a file is modified then it will be replaced with the new file.

    IISReset will clear the IIS cache but it won't do anything with local caches in proxies or clients. If a client requests something and it's found in the client cache then it'll get served from the cache. You'll need to force content expiration on your files.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 20, 2011 7:03 AM

All replies

  • User1508394307 posted

    Yes, by default iisreset stops and restart the Windows Process Activation Service (WAS), and the World Wide Web Publishing Service (WWW Service). 

    Don't forget that there is /REBOOT option that can be used to reboot the entire server.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 18, 2011 10:19 AM
  • User-1909838748 posted



    As per my understanding, it will clear the
    cache.

     

    Wednesday, May 18, 2011 10:22 AM
  • User-481631678 posted

    When you perform IISReset, all the elements stored in cache are destroyed. Also if you want to remove all elements from cache, you can do it without IISRest as mentioend here:-

    http://zeeshanumardotnet.blogspot.com/2011/03/how-to-clear-all-elements-from-cache.html

    Friday, May 20, 2011 3:51 AM
  • User-1359474226 posted

    When you do an IISReset the IIS cache will be cleared. It will start building the cache again based on requests. If a file is modified then it will be replaced with the new file.

    IISReset will clear the IIS cache but it won't do anything with local caches in proxies or clients. If a client requests something and it's found in the client cache then it'll get served from the cache. You'll need to force content expiration on your files.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 20, 2011 7:03 AM
  • User721740140 posted

    Yes

    Friday, May 20, 2011 7:28 AM
  • User1070101562 posted

    What about if the application pool for a website recycles, due to idle timeout for example?

    Will the cache for that application be cleared or will it remain?

    For instance I have set a httpcontext.current.cache value to expire in 12 hours, but the application pool will recycle after 20 minutes of inactivity. Would the recycling clear the cache?

    Wednesday, June 22, 2011 9:34 AM