Purging with regexes over HTTP
Gaute Amundsen
gaute at pht.no
Thu Nov 9 16:21:12 CET 2006
In http://varnish.projects.linpro.no/wiki/FAQ it says at the end of the entry:
"How can I force a refresh on a object cached by varnish?"
After describing how to set up the PURGE HTTP method:
>However, this way of implementing purge does not support wildcard purge yet
>(because of restrictions in VCL).
If I don't beat you to it, I would be happy if you would share your expect
script :)
Regards
Gaute Amundsen
On Thursday 09 November 2006 15:18, Trond Michelsen wrote:
> Hi.
>
> I'm having problems purging URLs with the PURGE request-method. So
> far, I've only been able to purge full URLs, one at a time. But I'd
> like to purge them with regexes instead.
>
> Shouldn't it be possible to say
>
> PURGE LAYERS=roads HTTP/1.0
> Host: hostname
>
> and accomplish the same as you do when issuing the command
>
> url.purge LAYERS=roads
>
> in the varnish CLI?
>
> Using the CLI works as expected, but I'm trying to write a script that
> should purge URLs automatically, whenever new data is available. I
> assume that it'll be easier to write a script that talks to varnish
> over HTTP, than a script that uses Expect to control the CLI, so I'd
> prefer using the HTTP interface.
More information about the varnish-misc
mailing list