Re: [squid-users] clearing a squid cache

From: A. Sajjad Zaidi <sajjad@dont-contact.us>
Date: Wed, 8 Sep 2004 21:18:27 +0500

On Wed, Sep 08, 2004 at 11:43:50AM -0400, Jim Matthews wrote:
>
> I have the following script:

<snip>

> mv $SQUID_CACHE /var/squid/old_cache

I can see two problems with that. If your cache is on it's own mounted
partition, as is common on large proxy servers, moving the directory can
cause things to break.

Secondly, caches can be pretty big. By renaming the old cache, you might
end up wasting space when the new cache starts to fill.

Might want to modify the script to delete everything under the cache
directory (rm -rf $SQUID_CACHE/*) and then recreate it using 'squid -z'.

-- 
A. Sajjad Zaidi                      http://www.sajjadzaidi.com/
GnuPG Key ID: 0xD7AD0E13
"I'd rather be stupid than Rainer..."
Received on Wed Sep 08 2004 - 10:17:47 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Oct 01 2004 - 12:00:02 MDT