AllExperts > Experts 
Search      

Unix/Linux OS

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More Unix/Linux OS Answers
Question Library

Ask a question about Unix/Linux OS
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Aaron Gray
Expertise
Installation, Administration and Troubleshooting OS, HTTPD, Sendmail, qmail, BIND, Squid, Dovecot, iptables, SSH, VSHell, Samba, Cups, NFS, etc.

Experience
I have been working with Linux and UNIX professionally for 11 years.

Education/Credentials
Red Hat Certified Engineer (RHCE v5)

 
   

You are here:  Experts > Computing/Technology > Focus on Unix > Unix/Linux OS > Howto Clean out Squid cache

Topic: Unix/Linux OS



Expert: Aaron Gray
Date: 9/5/2008
Subject: Howto Clean out Squid cache

Question
how do I clean out Squid Proxy cache?
If I bypass Squid I can get to anywhere on the net.. If using Squid.. some pages are not reachable.
Thanks ... John

Answer
There might be a more proper way of doing things, and if you find out I'd love to hear it :)

The way I do it is i stop squid, go in to the cache directory, remove everything! (rm -rf *), then start squid with the -z option.  You're good to go


# /etc/rc.d/init.d/squid stop
# cd /var/spool/squid
# rm -rf *
# /usr/sbin/squid -z
(you'll see something like "2008/09/05 16:02:21| Creating Swap Directories"
# /etc/rc.d/init.d/squid start


Your paths will probably be different but the same idea...


aaron

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.