Re: [squid-users] squidclient help

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sat, 20 Feb 2010 00:08:52 +1300

Vivek wrote:
> Hi All,
>
> I am trying to get the URLs of cached objects in disk in via squidclient.
>
> #squidclient mgr:vm_objects
>
> Retrieves the list of objects in the memory cache. It contains the URL
> link ( GET http://127.0.0.1:3181/id=000002591000260870/image.png )
> ---
> KEY 3BAE20D702DCFA4225D988B1F151EA92
> GET http://127.0.0.1:3181/id=000002591000260870/image.png
> STORE_OK IN_MEMORY SWAPOUT_NONE PING_DONE
> CACHABLE,DISPATCHED,VALIDATED
> LV:1266548360 LU:1266548360 LM:-1 EX:1266893960
> 0 locks, 0 clients, 1 refs
> Swap Dir -1, File 0XFFFFFFFF
> inmem_lo: 0
> inmem_hi: 16553
> swapout: 0 bytes queued
> ---
>
> #squidclient mgr:objects
>
> Retrieves the list of all cached objects (including those on disk). But
> it doesn't contain the URL link.

Sure it does...
> ---
> KEY 14A08323AC805484B4161AFCC0228C02

  ^^^ hash of the URL and unique request meta data. :)

Not very helpfull though I know.

> STORE_OK NOT_IN_MEMORY SWAPOUT_DONE PING_DONE
> CACHABLE,DISPATCHED,VALIDATED
> LV:1266548026 LU:1266548232 LM:-1 EX:1266893626
> 0 locks, 0 clients, 2 refs
> Swap Dir 0, File 0X004471
> ---
>
> How do we get the URLs of disk cache objects using squidclient or any
> other method...
>

Lookup the "purge" tool. It does a lot of cache storage management stuff
like you seem to want.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE8 or 3.0.STABLE24
   Current Beta Squid 3.1.0.16
Received on Fri Feb 19 2010 - 11:09:01 MST

This archive was generated by hypermail 2.2.0 : Fri Feb 19 2010 - 12:00:06 MST