How to enable caching on Squid for Windows?¶
Please consider going through the open issues with current Squid for Windows build before using it in production, see https://github.com/diladele/squid-windows/issues. It is almost as easy to use Hyper-V build of latest Squid 4 and Web Safety for your Windows deployments without limitations of the Windows specific build.
If you are using our installer for Squid for Windows from http://squid.diladele.com please follow these steps to enable disk caching. It is assumed the disk cache will be created in d:\squidcachedir folder.
Make sure that the directory d:\squidcachedir exists and empty (create with mkdir command if necessary).
Add the caching directive to the config file squid.config
cache_dir aufs /cygdrive/d/squidcachedir/cache 3000 16 256
Stop the squid service
Run the squid terminal shortcut on your desktop as administrator and perform the following commands:
Start the squid service again