problems with purge
ahooper at bmjgroup.com
Tue Oct 19 16:00:05 CEST 2010
Tollef Fog Heen uttered:
> ]] Alex Hooper
> | Hello,
> | Is it a known issue that causes
> | varnishadm -T localhost:6082 'purge req.http.url ~ ^/repository/bp-bundles/.*'
> | not to work while
> req.http.url is the HTTP header field called «url» in the request. I'm
> reasonably sure you don't have that.
Ah, yes, I *am* a moron. Not least for not reading the whole wiki page which
contains the same syntax typo (http://www.varnish-cache.org/trac/wiki/Purging
under Syntax of bans). Reading it to the end might have made me suspect the
It was the composite I was originally going for and now, thanks to your
enlightenment, I have it:
varnishadm -T localhost:6082 'purge req.http.host ~ group.bmj.com && req.url ~
I shall adjust my documentation accordingly. I did just register at
varnish-cache.org to see if I could update the Wiki but either I don't have the
privs or I don't have the Brane(TM).
> | varnishadm -T localhost:6082 'purge.url ^/repository/bp-bundles/.*'
> I assume there's a missing ~ there?
No. It works exactly as quoted.
Operations Team Leader, BMJ Group, BMA House, London WC1H 9JR
Tel: +44 (0) 20 7383 6049
The BMJ Group is one of the world's most trusted providers of medical information for doctors, researchers, health care workers and patients group.bmj.com. This email and any attachments are confidential. If you have received this email in error, please delete it and kindly notify us. If the email contains personal views then the BMJ Group accepts no responsibility for these statements. The recipient should check this email and attachments for viruses because the BMJ Group accepts no liability for any damage caused by viruses. Emails sent or received by the BMJ Group may be monitored for size, traffic, distribution and content. BMJ Publishing Group Limited trading as BMJ Group. A private limited company, registered in England and Wales under registration number 03102371. Registered office: BMA House, Tavistock Square, London WC1H 9JR, UK.
More information about the varnish-misc