LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-06-2011, 05:18 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Rep: Reputation: 45
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
 
Old 03-06-2011, 09:49 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
Old 03-06-2011, 09:50 AM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Also keep in mind that the cache is automatically managed, so you don't need to do this.
 
Old 03-06-2011, 11:30 PM   #4
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
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 ....?
 
Old 03-07-2011, 03:00 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by gardenair View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Active directory Authentication of parent non-squid cache to child squid cache espiya7 Linux - Server 0 05-05-2009 08:04 AM
Using an NFS share as squid cache directory, possible? tylerdurden82 Linux - Networking 1 01-20-2005 06:42 AM
how to clean squid cache dir phatboyz Linux - Software 1 05-03-2004 10:37 AM
squid cache server- error creating swap directory debloxie Linux - Networking 4 01-19-2004 12:49 AM
clean up squid cache anoop_chandran Linux - Networking 4 12-19-2001 10:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration