Wednesday, May 30, 2012

HowTo Clean and Re-build Squid cache

First, Check you squid.conf file , locate the location of you cache directory, you should have line starting with "cache_dir"

1) Shutdown your squid server
squid -k shutdown

2) Remove the cache directory
  • rm -r /squid/cache/*
or
  • rm -r /cache/*
or
  • rm -rf /cache/*
(forcelly remove )

3) Re-Create the squid cache directory
squid -z

4) Start the squid
service squid start

0 comments: