[3.0] 2cd4ec2 Update docs for 3.0 Fixes #1032

Tollef Fog Heen tfheen at varnish-cache.org
Wed Oct 26 14:58:54 CEST 2011


commit 2cd4ec22ce9846d32fcced777eccddc57ab0a07f
Author: Andreas Plesner Jacobsen <apj at mutt.dk>
Date:   Thu Oct 13 09:30:27 2011 +0200

    Update docs for 3.0
    Fixes #1032

diff --git a/doc/sphinx/tutorial/esi.rst b/doc/sphinx/tutorial/esi.rst
index ef79f3e..1d01cb8 100644
--- a/doc/sphinx/tutorial/esi.rst
+++ b/doc/sphinx/tutorial/esi.rst
@@ -48,9 +48,9 @@ For ESI to work you need to activate ESI processing in VCL, like this:::
     sub vcl_fetch {
     	if (req.url == "/test.html") {
            set beresp.do_esi = true; /* Do ESI processing		*/
-           set obj.ttl = 24 h; 	     /* Sets the TTL on the HTML above  */
+           set beresp.ttl = 24 h;    /* Sets the TTL on the HTML above  */
     	} elseif (req.url == "/cgi-bin/date.cgi") {
-           set obj.ttl = 1m;         /* Sets a one minute TTL on	*/
+           set beresp.ttl = 1m;      /* Sets a one minute TTL on	*/
 	       	       	 	     /*  the included object		*/
         }
     }



More information about the varnish-commit mailing list