I may suggest a fast way, given your cache_dir is /data/cache, and squid is running with nobody, then do:
stop squid;
mv /data/cache /data/cache0;
chown -R nobody:nobody /data/cache;
squid -z;
start squid;
rm -rf /data/cache0 &;
(I often do it as this way).
--- On Wed, 1/4/09, Nilesh <niluforalways_at_yahoo.com> wrote:
> From: Nilesh <niluforalways_at_yahoo.com>
> Subject: [squid-users] How to clear old cache
> To: "Squid" <squid-users_at_squid-cache.org>
> Received: Wednesday, 1 April, 2009, 8:11 PM
> 
> Hi All,
> 
> How do I remove old squid cache? 
> 
> I have googled for the problem but couldnot get the proper
> way to delete cache.
> 
> Every one said to delete the cache folder and rebuild the
> cache folder again with command squid -z.
> 
> Our server cache not rebuild from long time, Is there a way
> to delete only few months back cache..
> 
> or there is way squid can rebuild the cache automatically
> after a periodic time
> 
> Please help
> 
> Regards
> Nilesh
> 
> 
>       
> 
      Enjoy a safer web experience. Upgrade to the new Internet Explorer 8 optimised for Yahoo!7. Get it now.
Received on Wed Apr 01 2009 - 13:04:05 MDT
This archive was generated by hypermail 2.2.0 : Wed Apr 01 2009 - 12:00:02 MDT