LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-01-2005, 10:01 PM   #1
shadowsurfer
Member
 
Registered: Aug 2004
Location: philippines
Posts: 51

Rep: Reputation: 15
clearing cache on squid proxy


Pls. help i would like to check how to clear cache in squid proxy server.

thnx
 
Old 09-01-2005, 10:43 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
just stop squid, and erase all the files in your cache directory... for example:
Code:
squid -k shutdown

rm -fr /var/lib/squid/cache/*
then re-create the swap directory structure:
Code:
squid -z
then start squid again...


PS: you can also run "squid -z" without first deleting the cache files, and AFAIK that way it creates a new directory structure without wiping-out the old one, but i'm not sure if that's what happens as i've never done it...
 
Old 09-01-2005, 11:47 PM   #3
shadowsurfer
Member
 
Registered: Aug 2004
Location: philippines
Posts: 51

Original Poster
Rep: Reputation: 15
thanks for the info win32sux
 
Old 09-02-2005, 06:11 AM   #4
dpajares
LQ Newbie
 
Registered: Apr 2004
Location: uruguay
Distribution: debian
Posts: 26
Blog Entries: 1

Rep: Reputation: 15
excelent, is very good info.
 
Old 02-05-2007, 06:37 AM   #5
nuzzr79
LQ Newbie
 
Registered: Feb 2007
Posts: 1

Rep: Reputation: 0
Hi There,

I have the same problem on clearing out the cache.
Tried to enter "squid -k shutdown" command, but it returns an error message:
"squid: ERROR: No running copy"
Can anyone advise how to solve this?

I also tried to stop the Squid service, but it always came out FAILED

rgds,
Nassar
 
Old 04-20-2007, 04:02 AM   #6
yawe_frek
Member
 
Registered: Sep 2005
Distribution: feather 0.72-usb, DSL,CentOS,Ubuntu, Redhat 9
Posts: 144

Rep: Reputation: 15
Thanks for ur response but how do i clear if i have my cache on a partition which i created for squid.

thk
 
Old 04-20-2007, 10:56 AM   #7
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by yawe_frek
how do i clear if i have my cache on a partition which i created for squid.
it don't think it would make any difference, the concept is the same...
 
Old 06-20-2007, 08:42 PM   #8
Rainel
Member
 
Registered: Jun 2007
Posts: 57

Rep: Reputation: 15
how to know if i already clear my squid cache

Good am guys..

How do I know if I already know my squid cache has been cleared...

Any help is highly appreciated...

Thankz...
 
Old 06-21-2007, 02:12 PM   #9
yawe_frek
Member
 
Registered: Sep 2005
Distribution: feather 0.72-usb, DSL,CentOS,Ubuntu, Redhat 9
Posts: 144

Rep: Reputation: 15
hi ,

Are you using an entire harddisk as a partition or ur cache is within the squid dir.
 
Old 04-15-2008, 11:33 PM   #10
kathirvel1980
LQ Newbie
 
Registered: Aug 2007
Location: Bangalore - India
Distribution: RHEL5
Posts: 3

Rep: Reputation: 0
Post squid (pid 1828 1982 ) is running

Quote:
Originally Posted by yawe_frek View Post
hi ,

Are you using an entire harddisk as a partition or ur cache is within the squid dir.
squid dead but sysbus is locked
squid error running copy of squid


i check the squid status
the above messages will shown
how can i solve this and
/var/log/messages file
check your disk space and your cache log
 
  


Reply



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
Squid Reverse Proxy Cache Question Gentoo20 Linux - Networking 0 02-04-2005 01:19 PM
Squid Cache & Filter without Proxy PersianPatient Linux - Software 4 11-24-2004 12:23 PM
DNS cache clearing n.antonio Linux - Software 0 05-11-2003 08:44 PM
clearing cache waxiem Linux - General 1 03-02-2003 09:42 AM
Squid proxy/cache on a dail-up internet connection manaskb Linux - Networking 1 01-14-2003 12:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:14 AM.

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