Commit 10afe10f authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Add two VCL variables, "now" and "obj.lastuse". The former returns the

current time, the latter returns the number of seconds since an object
was last requested.  The exact semantics of both are slightly fluid at
the moment, and will be revisited at a later date.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1628 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 813317cf
......@@ -130,6 +130,10 @@ set spobj {
RW TIME
{ hit fetch discard timeout}
}
{ obj.lastuse
RO TIME
{ hit fetch deliver discard timeout}
}
# The response we send back
{ resp.proto
......@@ -148,6 +152,12 @@ set spobj {
RW HEADER
{ fetch }
}
# Miscellaneous
{ now
RO TIME
{recv pipe pass hash miss hit fetch deliver discard timeout}
}
}
set tt(IP) "struct sockaddr *"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment