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@xxxxxxxxxxxxx>
To: Sir June <sir_june@xxxxxxxxx>
Cc: squid-users@xxxxxxxxxxxxxxx
Sent: Tuesday, April 14, 2009 9:48:50 PM
Subject: Re: 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