LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   clearing cache on squid proxy (https://www.linuxquestions.org/questions/linux-newbie-8/clearing-cache-on-squid-proxy-359346/)

shadowsurfer 09-01-2005 10:01 PM

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

thnx

win32sux 09-01-2005 10:43 PM

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

shadowsurfer 09-01-2005 11:47 PM

thanks for the info win32sux

dpajares 09-02-2005 06:11 AM

excelent, is very good info.

nuzzr79 02-05-2007 06:37 AM

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

yawe_frek 04-20-2007 04:02 AM

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

thk

win32sux 04-20-2007 10:56 AM

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

Rainel 06-20-2007 08:42 PM

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

yawe_frek 06-21-2007 02:12 PM

hi ,

Are you using an entire harddisk as a partition or ur cache is within the squid dir.

kathirvel1980 04-15-2008 11:33 PM

squid (pid 1828 1982 ) is running
 
Quote:

Originally Posted by yawe_frek (Post 2795724)
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


All times are GMT -5. The time now is 04:22 PM.