Re: [squid-users] clearing a squid cache

From: Jim Matthews <jim.matthews@dont-contact.us>
Date: Wed, 8 Sep 2004 11:43:50 -0400

Keith

I have the following script:

#!/bin/sh
#
# script to shutdown squid, initialize new cache_dir
#

SQUID_CACHE=/var/squid/cache
SQUID_DIR=/usr/local/squid

/etc/init.d/squid stop

mv $SQUID_CACHE /var/squid/old_cache

mkdir $SQUID_CACHE
chown squid $SQUID_CACHE

$SQUID_DIR/sbin/squid -z

/etc/init.d/squid start

Thanks.
---------------------
Jim Matthews
ISS Systems Administrator
Duke University - Perkins Library
Box 90196
Durham, NC 27708
Email: jim.matthews@duke.edu
Voice: 919-660-5963
Fax: 919-684-6990

"Keith Fergie" <info@broadbandrental.com>
09/08/2004 11:17 AM

To
<squid-users@squid-cache.org>
cc

Subject
[squid-users] clearing a squid cache

Dear All,

Is there a very simple way to clear a cache of all it's content to start
again, short on reinstalling?

Kind Regards

Keith
0870 41 40 345

[attachment "winmail.dat" deleted by Jim
Matthews/Libraries/Provost/Academic/Univ/Duke]
Received on Wed Sep 08 2004 - 09:44:01 MDT

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