Clearing the config cache with Powershell

Clearing the SharePoint Config cache is no longer a manual task and is easier than clearing the saliva out of a baritone.

First of all, thank you to Mickey Jervin, Nick Hobbs, Dwayne Selsig, and most importanty Stephen Swinney, the SharePoint guru who shared this little time saver with me.


What follows is a script that you can use in your SharePoint farm to clear the SharePoint Config cache on all your servers, at once, versus the manual approach.


Save this script into a ps1 file and run it.