Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've been using the purge utility ie.

squidclient -m PURGE http://www.mysite.com/

The above command will purge that exact link but it leaves everything else under it in the cache. (eghttp://www.mysite.com/page1)

I was wondering is there a way to purge every document under that url?

Thanks in Advance Ruth

share|improve this question

1 Answer 1

up vote 2 down vote accepted

The 3rd-party purge utility will do exactly what you seek:

The purge tool is a kind of magnifying glass into your squid-2 cache. You can use purge to have a look at what URLs are stored in which file within your cache. The purge tool can also be used to release objects which URLs match user specified regular expressions. A more troublesome feature is the ability to remove files squid does not seem to know about any longer.

For our accelerating (reverse) proxy, I use a config like this:

purge -c /etc/squid/squid.conf -p localhost:80 -P0 -se 'http://www.mysite.com/'

-P0 will show the list of URLs but not remove them; change it to -P1 to send PURGE to the cache, as you do in your example.

share|improve this answer
    
Thank You, that helprd –  user33237 Feb 18 '10 at 10:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.