Created
June 21, 2016 12:52
-
-
Save fatso83/5dfba3a3c2cb80edaf9c856ae2d473a3 to your computer and use it in GitHub Desktop.
How to fully stop the IIS and the Web Application System to be able to clear caches and stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# It should be run with admin rights. Rerun if it fails. | |
net stop was | |
# do your thing: run deploy script, whatever | |
# iis no longer holds on to any files | |
# to clear the cache of compiled cshtml templates matching "preview" I did this | |
# `find /cygdrive/c/Windows/Microsoft.NET/Framework64/v4.0.30319/ -iname '*campaign*' -print0|xargs -0 rm` | |
net start w3svc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment