Skip to content

Instantly share code, notes, and snippets.

@fatso83
Created June 21, 2016 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fatso83/5dfba3a3c2cb80edaf9c856ae2d473a3 to your computer and use it in GitHub Desktop.
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
# 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