[Varnish] #956: Value of obj.ttl in vcl_hit
Varnish
varnish-bugs at varnish-cache.org
Wed Jul 6 09:27:31 CEST 2011
#956: Value of obj.ttl in vcl_hit
---------------------+------------------------------------------------------
Reporter: pmialon | Type: defect
Status: new | Priority: normal
Milestone: | Component: varnishd
Version: 3.0.0 | Severity: normal
Keywords: |
---------------------+------------------------------------------------------
On a server running squeeze with the package varnish.3.0.0-1~squeeze1 from
varnish-cache.org debian repo.
In the default vcl config file, I only modify vcl_hit with the following
lines:
{{{
import std;
sub vcl_hit {
std.log("Obj.ttl : " + obj.ttl);
return (deliver);
}
}}}
The manpage of vcl indicate that :
'''obj.ttl''': ''The object's remaining time to live, in seconds. obj.ttl
is writable.
''
with varnish 2.1.5 this is the case but with varnish 3.0.0 the previous
line display in the log the initial TTL.
Is obj.ttl deprecated under varnish 3.0.0? Where can I access the value of
the remaining TTL of an object?
--
Ticket URL: <http://varnish-cache.org/trac/ticket/956>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list