Re: How do I wipe out the squid cache ?

From: James Aldridge <jhma@dont-contact.us>
Date: Tue, 01 Apr 1997 18:51:27 +0200

In message <199704011638.IAA01596@nlanr.net> Duane Wessels wrote:
> jung@jean.kotel.co.kr writes:
>
> > Thanks ! I am running squid -sYz.
> >
> > Nothing is written oncache_dir/log file and free disk space of cache_dir
> > does not increse after log is deleted.
> > After editing log using vi, log file is writeable.
> > I want to increase free disk space of cache_dir by really deleting files
> > in cache_dir.
> > Do I do 'rm' for every files in cache_dir to get my goal as follow ?
> >
> > From >>
> > $df -k
> > cache1_domain#cache1 20938696 7082939 13551408 35% /cache1
> > To >>
> > $df -k
> > cache1_domain#cache1 20938696 0 20938696 0% /cache1
> >
> > Is there any other method using squid to get free disk space in cache_dir
> > without using 'rm'?
>
> You can add -U to the options.
>
> Removing the objects will take a long time. I suggest you instead do:
>
> mv cache1 killme
> mkdir cache1
> rm -rf killme &
>
> then restart squid.

Alternatively, if the cache directory is large and on a partition by itself,
"newfs" is probably faster ;-)

James

----- ___ - James Aldridge, Senior Network Engineer,
---- / / / ___ ____ _/_ -- EUnet Communications Services BV
--- /--- / / / / /___/ / --- Singel 540, 1017 AZ Amsterdam, NL
-- /___ /___/ / / /___ /_ ---- Tel: +31 20 530 5327; Fax: +31 20 622 4657
- ----- 24hr emergency number: +31 20 421 0865
Received on Tue Apr 01 1997 - 09:24:38 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:34:55 MST