Purge
Anders Berg
andersb at vgnett.no
Fri Jul 21 09:58:56 CEST 2006
> In message <1201.193.69.165.4.1153427528.squirrel at denise.vg.no>, "Anders
> Berg"
> writes:
>
>>Poul-Henning told me (in irc before he timed-out) that it would not take
>>long to implement either TTL per URL or PURGE in VCL.
>
> Yes.
>
> Setting the TTL would be something as simple as:
>
> sub vcl_fetch {
> if (req.url = "/") {
> obj.ttl = 120;
> }
> }
>
> [....]
>
> I've started on the last nasty bit of the HTTP header
> storage/editing/munging stuff, and I would like to get that done
> first, but I'll do whichever of the other two you want
> afterwards.
Sure, do that first.
The
if (req.url = "/") {
obj.ttl = 120;
}
method is enuff for now. The other way is more complex to implement at the
moment I guess, so it can wait.
Anders Berg
> Poul-Henning
>
> --
> Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
> phk at FreeBSD.ORG | TCP/IP since RFC 956
> FreeBSD committer | BSD since 4.3-tahoe
> Never attribute to malice what can adequately be explained by
> incompetence.
>
>
More information about the varnish-dev
mailing list