How to Clear the Squid Proxy Cache in Windows

PowerShell

For some reason directions for clearing the Squid proxy cache (in Windows) seemed hard to come by on the web, so I thought I’d post them here. Hope this helps someone:

  1. Run MMC and load the services snap-in, kill the running squid process.
  2. Empty Squid’s cache folder (e.g. C:\squid\vars\cache\).
  3. Run Squid with the –z parameter to rebuild the cache folder structure (e.g. C:\squid\sbin\squid.exe –z).
  4. From the services snap-in of MMC, restart the squid service.

Leave a Reply

Your email address will not be published. Required fields are marked *