2

Each time I make an update to one of my sites, I go into the IIS Manager and I first recycle the App Pool for that site, then restart the site itself. Is this really required?

I restart the AppPool to make sure the new bins are compiled and running underneath the site (rather than waiting up to 20 minutes or so for it to do this automatically).

Then I restart the site itself, for good measure I suppose (to make sure all the views and such are properly re-evaluated by IIS).

Are both operations required?

  • Will the AppPool automatically recycle if the site is restarted?
  • Will the site automatically restart if the AppPool is recycled?
jleach
  • 7,410
  • 3
  • 33
  • 60
  • 1
    No, neither is required. If you update the site files it will be automatically handled. I've never had a situation where you would have to wait 20 minutes for the site to rebuild. – Sami Kuhmonen Feb 11 '17 at 13:11
  • Any changes in the `/bin` folder will trigger a Recycle. So if you add/overwrite files there it will be done automatically as @SamiKuhmonen also writes. – VDWWD Feb 11 '17 at 19:00
  • @VDWWD just `/bin`, or other site folders as well? I guess AppPool only need be concnered about the bin... I suppose I'll have to do some deeper research on what restarting the site itself actually does. – jleach Feb 12 '17 at 03:09
  • There are other triggers, check http://stackoverflow.com/questions/302110/what-causes-an-application-pool-in-iis-to-recycle – VDWWD Feb 12 '17 at 15:01

0 Answers0