[K12OSN] OT - how to clear squid ip cache?

Ron Freidel rfreidel at computergeex.com
Wed Aug 25 15:55:02 UTC 2004


How about using

squid -k shutdown
squid -z
squid

Then you'll have a new cache.


Huck (dhuckaby at paasda.org) wrote:
>
> I don't suppose it will take the '*' wildcard will it? =)
> http://www.thisplace.com/*.html ??
> that would be kind of groovy
>
> --Huck
>
> Eric Harrison wrote:
>
> >On Tue, 24 Aug 2004, Julius Szelagiewicz wrote:
> >
> >
> >
> >>Dear Folks,
> >>	the subject asks the question. I have a problem with accessing a
> >>production site, where DNS resolves correctly, but browsers access the old
> >>test site because squid has the old ip in the cache. Googling on it tells
> >>me to run the cachemgr.cgi script, but how do I run it if apache is not
> >>running on the squid box? thanks, julius
> >>
> >>
> >
> >The squidclient utility can clear a cached page.
> >
> >Add the following lines to your /etc/squid/squid.conf
> >
> >	acl PURGE method PURGE
> >	http_access allow PURGE localhost
> >	http_access deny PURGE
> >
> >
> >tell squid to re-read its configs:
> >
> >	service squid reload
> >
> >Now you can purge urls from the cache:
> >
> >	squidclient -m PURGE http://www.somewhere.com
> >
> >Note that this does individual pages, it does not purge a whole
> >website. If page1.html, page2.html, etc are all stale, you'll
> >have to purge each one:
> >
> >	squidclient -m PURGE http://www.somewhere.com/page1.html
> >	squidclient -m PURGE http://www.somewhere.com/page2.html
> >
> >-Eric
> >
> >
> >_______________________________________________
> >K12OSN mailing list
> >K12OSN at redhat.com
> >https://www.redhat.com/mailman/listinfo/k12osn
> >For more info see <http://www.k12os.org>
> >
> >
> >
> >
>
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>

--
Ron Freidel
Some or all of my comments should not be taken seriously.
http://leroy.homeunix.org






More information about the K12OSN mailing list