[3.0] 6590e65 Most of these variables are not available in vcl_deliver
Tollef Fog Heen
tfheen at varnish-cache.org
Thu May 24 14:47:42 CEST 2012
commit 6590e6561996f0d9c9cd99178b3b936899dcc918
Author: Andreas Plesner Jacobsen <apj at mutt.dk>
Date: Thu Feb 16 19:53:59 2012 +0100
Most of these variables are not available in vcl_deliver
Fixes #1056
diff --git a/doc/sphinx/reference/vcl.rst b/doc/sphinx/reference/vcl.rst
index 5d3030f..ff92c56 100644
--- a/doc/sphinx/reference/vcl.rst
+++ b/doc/sphinx/reference/vcl.rst
@@ -836,7 +836,8 @@ beresp.storage
After the object is entered into the cache, the following (mostly
read-only) variables are available when the object has been located in
-cache, typically in vcl_hit and vcl_deliver.
+cache, typically in vcl_hit, or when constructing a synthetic reply in
+vcl_error:
obj.proto
The HTTP protocol version used when the object was retrieved.
@@ -852,11 +853,12 @@ obj.ttl
obj.lastuse
The approximate time elapsed since the object was last requests, in
- seconds.
+ seconds. This variable is also available in vcl_deliver.
obj.hits
The approximate number of times the object has been delivered. A value
- of 0 indicates a cache miss.
+ of 0 indicates a cache miss. This variable is also available in
+ vcl_deliver.
obj.grace
The object's grace period in seconds. obj.grace is writable.
More information about the varnish-commit
mailing list