Re: [squid-users] squid - loading, checking and purging

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 16 Apr 2009 00:39:35 +1200

Sir June wrote:
> i'm looking for command-line options..
>

squidclient is your friend for atomic type object operations. Just be
careful when pulling binary objects since it will dump the resulting
page to stdout/screen.

1) squidclient -H "Cache-Control: only-if-cached\n"
http://example.com/mypage.html

2) squidclient -m PURGE http://example.com/mypage.html

3) fast way: wget -i list.txt -O /dev/null
alternative:
   for f in `cat list.txt`; do squidclient $f >/dev/null; done

Amos

>
>
> ----- Original Message ----
> From: Pieter De Wit <pieter_at_insync.za.net>
> To: Sir June <sir_june_at_yahoo.com>
> Cc: squid-users_at_squid-cache.org
> Sent: Tuesday, April 14, 2009 9:48:50 PM
> Subject: Re: [squid-users] squid - loading, checking and purging
>
> Hi :)
>
> 1 - I *think* webmin has this feature - not sure how to do it directly
> with squid.
>
> 2 - As above
>
> 3 - export HTTP_PROXY="squid:port" wget <all the urls>
>
> 3a - It wont be 100% sure if the object will be stored as squid will work
> it out (using policies etc)
>
> Just a bit of help :)
>
> Cheers,
>
> Pieter
>
> On Tue, 14 Apr 2009, Sir June wrote:
>
>> Hi,
>>
>> I just joined this mailing list and i'd like to get insights on how to do the following?
>>
>> 1) how to check if an object or a URL is in the squid cache?
>>
>> 2) how to purge an object or a URL from the squid cache?
>>
>> 3) if i have a long list (1000 items) of objects/url that i want to load into the cache, how do i load it?
>>
>>
>> thanks,
>> sirjune
>>
>>
>>
>>
>
>
>

-- 
Please be using
   Current Stable Squid 2.7.STABLE6 or 3.0.STABLE14
   Current Beta Squid 3.1.0.7
Received on Wed Apr 15 2009 - 12:39:44 MDT

This archive was generated by hypermail 2.2.0 : Wed Apr 15 2009 - 12:00:02 MDT