Hi,
On Wed, 16 Oct 2002, Mrvka Andreas wrote:
> hi squid-users!
>
> squid caches internet files and stores them somewhere
> what i configured at comopilation time.
> or later on in the squid.conf.
> i, for example, store the cache at /usr/local/squid/cache.
>
> BUT!!
> now i want to for a specific file in the cache i've seen that
> this file was downloaded (seen in access.log).
> but i can't find it on hard drive??
>
> root@proxy# find /usr/local/squid/cache -name filename.ext
>
>
> so where is the file? how can i find it?
Squid uses a hash function on the complete URL to generate a fixed length
name for the file. You can't easily locate the file with the content for
that URL. There is a tool, probably metioned in the FAQ that can be used
to purge an entire site from the cache. You'll need to look at that tool.
As a last resort you could try:
find /usr/local/squid/cache -type f -print | xargs grep filename.ext
Colin
-- Colin Campbell Unix Support/Postmaster/Hostmaster CITEC +61 7 3227 6334Received on Wed Oct 16 2002 - 16:57:26 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:10:43 MST