Re: How do I wipe out the squid cache ?

From: Duane Wessels <wessels@dont-contact.us>
Date: Tue, 01 Apr 97 08:38:45 -0800

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.

Duane W.
Received on Tue Apr 01 1997 - 09:08:35 MST

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