Dean wrote:
>
> Thanks, Craig!!
>
> Just one last question
> So, - if I simply restart the E-smith box, this doesn't clear
> the proxy cache, - right?
>
> Does Squid know when to automatically truncate the files in
> its cache to avoid runnig out of disk space? Can tweak this
> setting?
Craig, this is the way mentioned in a FAQ on
www.squid-cache.org to do it.
First of all, you must stop Squid of course. You can use the command:
squid -k shutdown
The fastest way to restart with an entirely clean cache is to over write the swap.state file. Note, you can not just remove the swap.state file, or truncate it to zero size. Instead, you should put just one byte of garbage there. For example:
echo "" > /var/spool/squid/swap.state
Restart squid:
squid