Koozali.org: home of the SME Server

How to clear squid cache ?

WXP

How to clear squid cache ?
« on: July 13, 2001, 08:59:32 PM »
How ?

thanx ;-)

Michael Doerner

Re: How to clear squid cache ?
« Reply #1 on: July 14, 2001, 10:46:38 AM »
squid -z ?

You are welcome ;-)

enigma01

Re: How to clear squid cache ?
« Reply #2 on: July 16, 2001, 08:20:13 PM »
it helps if you stop hte service first!

enigma01

Re: How to clear squid cache ?
« Reply #3 on: July 18, 2001, 02:37:45 AM »
Sorry - i should have gien the complete instructions, here we go then :)

logon to the esmith from your favourite term-emulator or the console and type the following

service squid stop     (this stops the service)
squid -z                    (this rebuilds the cache and swap directories)
service squid start     (this starts squid again)

hope this helps - let us know if it does - there are loads of threads that nefer seem to acknowledge or inform the next person if the info solved the Q.

Best of  luck

Gavin

WXP

Re: How to clear squid cache ?
« Reply #4 on: July 18, 2001, 06:19:26 PM »
i dont know if it works because i just reinstalled my e-smith server but i^'ll try to notify if i see something l8er..

Synquest

Clearing squid cache...
« Reply #5 on: November 05, 2006, 09:05:02 PM »
squid -z will rebuild the cache and swap directories, but will not clear the cache...

To do that:

service squid stop

echo "" > /var/spool/squid/swap.state

service squid start

This overwrites the squid cache with 1 byte of garbage, in effect clearing it.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: How to clear squid cache ?
« Reply #6 on: November 06, 2006, 03:36:55 AM »
Quote from: "WXP"
How ?


"Why?" is another relevant question. The squid cache saves you time (and in many cases money). You can always refresh individual items in the cache using appropriate browser key combinations (unfortunately they differ between browsers).

Synquest

Why?
« Reply #7 on: April 30, 2007, 03:10:53 PM »
The "why" would be that selective refresh by use of various key combinations (CTRL in IE) will not refresh framed content reliably.