call a sub function and return
Daniel Bruessler
mail at danielbruessler.de
Wed Oct 14 15:33:27 CEST 2009
Hi!
I'd like to call a sub function and use the return-function. But is
there a return-function?
#called from vcl_fetch: call vcl_custom_cachingtime;
sub vcl_custom_cachingtimes {
if (req.url ~ "^/abc/*" {
set obj.ttl = 10m;
#return (0);
}
if (req.url ~ "^/def/*" {
set obj.ttl = 30s;
}
}
thanks in advance and cheers!
Daniel
:: Daniel Bruessler - Emilienstr. 10 - 90489 Nuernberg
More information about the varnish-misc
mailing list