I am trying to accelerate a server that might change what a particular URL
returns based on criteria not known to squid. In other words some external
event would make me want to invalidate a group of urls that are currently in
the cache. I don't (and can't) know all of the possible urls affected by
this, so I want to cycle through the list something like this:
foreach object in cache
url = geturl from object
if url is now different
purge url
So I guess what I really would like is a way to get the url from a given
cache object key. Then I would know the url and could use the existing
purge method of "client -m PURGE url". This wouldn't be happening very
often so how fast it executes isn't critical. Perhaps an addition to the
cachemgr interface would allow me to get the information I want? I'm
looking through that code now to see if I can figure out what it would take.
-Bill
> -----Original Message-----
> From: hno@hem.passagen.se [mailto:hno@hem.passagen.se]
> Sent: Tuesday, January 16, 2001 12:16 PM
> To: William Wishon
> Cc: squid-users@ircache.net
> Subject: Re: [SQU] Purging objects
>
>
> Why do you need to manually purge objects you do not know the defails
> about (i.e. the URL)?
>
> --
> Henrik Nordstrom
> Squid hacker
>
>
> William Wishon wrote:
> >
> > How do I purge an object from the squid cache when the cachemgr list
> > of all objects in the cache doesn't always show the url? It appears
> > that if the cached object is in memory then it shows the url and I can
> > purge it using client -m PURGE url. But most of the objects listed as
> > being in the cache do not have a url listed with them.
> >
> > Thanks,
> > Bill
> >
-- To unsubscribe, see http://www.squid-cache.org/mailing-lists.htmlReceived on Tue Jan 16 2001 - 14:05:24 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:57:28 MST