1

how to clear squid cache

I have installed squid in CentOS 6 OS. How to clear the squid cache for every 1 hour and is that possible to do with the help of cron...???

Squid Cache Add a comment
oliver
asked Feb 07 2017

Answer

1

Not Possible to Clear squid cache through cron... Do the following steps to clear squid cache

step 1 : stop the squid service

service squid stop 

step 2 : remove the cache directory

rm -rf /var/spool/squid/

step 3 : recreate the cache directory

squid -z

step 4: start the squid service

service squid start
Add a comment
mkarthikeyan
asked Feb 12 2017
edited Oct 05 2018
Post your Answer
1

Its very easy just clear the cache and then remove and recreate the cache and let your squid start the service.

Available here https://cotintl.com Personal Training Studio in Queens NY

Add a comment
ayesy
asked Jul 03 2023
edited Jul 04 2023
Post your Answer
1

As a professional research writer, I've foud the best and easiest way to remove the squid cache:

cache_dir ufs /squid/cache 1000 255 255.
cache_dir ufs /squid/cache 100 255 255.
squid -k reconfigure.
squid -k shutdown rm -r /squid/cache/ squid -z squid.
rm -rf /squid/cache/[0-9]
rm -f /squid/cache/swap rm -f /squid/cache/netdb rm -f /squid/cache/*.log.

I hope this will help you if not then do let me know I'll provide you more ways but for now I'm so busy to in writing on amorale patches in Canad for EDCA.

Add a comment
norabenjamin
asked Jul 14 2023
edited Jul 14 2023
Post your Answer