r5488 - trunk/varnish-cache/doc/sphinx/reference

perbu at varnish-cache.org perbu at varnish-cache.org
Tue Nov 2 10:04:52 CET 2010

Author: perbu
Date: 2010-11-02 10:04:52 +0100 (Tue, 02 Nov 2010)
New Revision: 5488

log, set, unset was missing from the vcl docs

Modified: trunk/varnish-cache/doc/sphinx/reference/vcl.rst
--- trunk/varnish-cache/doc/sphinx/reference/vcl.rst	2010-10-28 12:27:10 UTC (rev 5487)
+++ trunk/varnish-cache/doc/sphinx/reference/vcl.rst	2010-11-02 09:04:52 UTC (rev 5488)
@@ -46,16 +46,23 @@
 Strings are concatenated by putting them one after each other
 without a '+' operator between.
-Assignments are introduced with the set keyword.  There are no
+Assignments are introduced with the *set* keyword.  There are no
 user-defined variables; values can only be assigned to variables
 attached to backend, request or document objects.  Most of these are
 typed, and the values assigned to them must have a compatible unit
+You can use the *set* keyword to arbitrary HTTP headers. You can
+remove headers with the *remove* or *unset* keywords, which are
 VCL has if tests, but no loops.
+You may log arbitrary strings to the shared memory log with the
+keyword *log*.
 The contents of another VCL file may be inserted at any point in the
-code by using the include keyword followed by the name of the other
+code by using the *include* keyword followed by the name of the other
 file as a quoted string.
 Backend declarations
@@ -717,6 +724,7 @@
   sub vcl_fetch {
     if (beresp.ttl < 120s) {
+      log "Adjusting TTL";
       set beresp.ttl = 120s;

More information about the varnish-commit mailing list