Re: [squid-users] Removing cached files

From: Colin Campbell <sgcccdc@dont-contact.us>
Date: Thu, 26 Apr 2001 08:50:31 +1000 (EST)

Hi,

On Tue, 24 Apr 2001, Alexander Celle T. wrote:

> Hi, I know I can remove an individual file from Squid's cache by using the
> client program with the purge method. I would like, however, to be able to
> remove a complete directory (i.e. something like client -m PURGE
> http:mysite.com/*)
>
> I canīt figure out how to generate a list of the files that would fall under
> the * without parsing the access.log.
>
> How can it be done?

Every file in the cache has a header with the original URl in it. You'll
need to scan every file in the cache and "client -m PURGE" the URLs you
find.

Colin
Received on Wed Apr 25 2001 - 16:51:02 MDT

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