[master] b95b418 obj.lastuse has been renamed to obj.last_use

Federico G. Schwindt fgsch at lodoss.net
Wed Jan 22 21:02:56 CET 2014


commit b95b41888e18ec85bd3b8ee8769d8402105ead1f
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Wed Jan 22 20:00:20 2014 +0000

    obj.lastuse has been renamed to obj.last_use
    
    Update vcl(7) and default.vcl

diff --git a/bin/varnishd/default.vcl b/bin/varnishd/default.vcl
index 676fe2c..8e8fa26 100644
--- a/bin/varnishd/default.vcl
+++ b/bin/varnishd/default.vcl
@@ -144,7 +144,7 @@ sub vcl_deliver {
      * Enable them only if you need them.
      *
      * set obj.hits = obj.hits + 1;
-     * set obj.lastuse = now;
+     * set obj.last_use = now;
      */
     return (deliver);
 }
diff --git a/doc/sphinx/reference/vcl.rst b/doc/sphinx/reference/vcl.rst
index a99f2eb..8a3ee2c 100644
--- a/doc/sphinx/reference/vcl.rst
+++ b/doc/sphinx/reference/vcl.rst
@@ -824,7 +824,7 @@ obj.response
 obj.ttl
   The object's remaining time to live, in seconds. obj.ttl is writable.
 
-obj.lastuse
+obj.last_use
   The approximate time elapsed since the object was last requests, in
   seconds. This variable is also available in vcl_deliver.
 



More information about the varnish-commit mailing list