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...???

oliver
asked Feb 6, 2017
3 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
View More
mkarthikeyan
answered Feb 12, 2017
0

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

View More
ayesy
answered Jul 3, 2023
0

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.

View More
norabenjamin
answered Jul 14, 2023
Your Answer
||||
x
 
100:0