LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to clean squid cache directory ? (https://www.linuxquestions.org/questions/linux-server-73/how-to-clean-squid-cache-directory-866719/)

gardenair 03-06-2011 05:18 AM

How to clean squid cache directory ?
 
Hi,
I am using squid on my cent os 5. The cache directory is almost full.
Code:

# cache_dir ufs /var/spool/squid 1000 16 256
kindly guide me how can i flush or clean the data inside the cache directory of squid using terminal ?

thanks
garden

bathory 03-06-2011 09:49 AM

Hi,

You can't flush, or empty the squid cache. What you can do is to stop squid, delete the cache directory and then run
Code:

squid -z
to recreate it.
After that start squid again normally.

Regards

win32sux 03-06-2011 09:50 AM

Also keep in mind that the cache is automatically managed, so you don't need to do this.

gardenair 03-06-2011 11:30 PM

thanks for the reply .well if you go to following side you will see how they clear squid cache
Code:

http://www.labtestproject.com/linux_network/delete_remove_clear_squid_cache_on_linux_fedora.html
what do you say about it ....?

bathory 03-07-2011 03:00 AM

Quote:

Originally Posted by gardenair (Post 4281113)
thanks for the reply .well if you go to following side you will see how they clear squid cache
Code:

http://www.labtestproject.com/linux_network/delete_remove_clear_squid_cache_on_linux_fedora.html
what do you say about it ....?

Isn't that the same with what I've posted above?
Well except that in your link the guy deletes the old cache directory after starting squid.


All times are GMT -5. The time now is 05:49 PM.