Hi, according to "man vcl" there is a variable "now":
Variables
[...]
The following variables are always available:
now The current time, in seconds since the epoch.
However:
r...@floor [~] $ cat foo.vcl
sub vcl_recv {
if (now)
{
set req.backend = localhost;
} else {
set req.backend = localhost;
}
}
r...@floor [~] $ varnishd -C -f ./foo.vcl
Message from VCC-compiler:
Syntax error in condition, expected '(', '!' or variable name, found 'now'
(input Line 2 Pos 13)
if (now)
------------###-
Running VCC-compiler failed, exit 1r...@floor [~] $
Hm. What am I doing wrong? Or was it renamed? Removed?
Thanks in advance.
Kind regards,
--
Navteq (DE) GmbH
Frank Gruellich
Map24 Systems and Networks
Duesseldorfer Strasse 40a
65760 Eschborn
Germany
Phone: +49 6196 77756-414
Fax: +49 6196 77756-100
HRB 46215, Local Court Frankfurt am Main
Managing Directors: Thomas Golob, Hans Pieter Gieszen, Martin Robert Stockman
USt-ID-No.: DE 197947163
signature.asc
Description: OpenPGP digital signature
_______________________________________________ varnish-misc mailing list [email protected] http://lists.varnish-cache.org/mailman/listinfo/varnish-misc
