r1613 - trunk/varnish-cache/man

des at projects.linpro.no des at projects.linpro.no
Mon Jul 2 15:16:05 CEST 2007


Author: des
Date: 2007-07-02 15:16:04 +0200 (Mon, 02 Jul 2007)
New Revision: 1613

Modified:
   trunk/varnish-cache/man/vcl.7
Log:
Update to reflect the latest changes to cache_center.c.


Modified: trunk/varnish-cache/man/vcl.7
===================================================================
--- trunk/varnish-cache/man/vcl.7	2007-07-02 13:08:07 UTC (rev 1612)
+++ trunk/varnish-cache/man/vcl.7	2007-07-02 13:16:04 UTC (rev 1613)
@@ -28,7 +28,7 @@
 .\"
 .\" $Id$
 .\"
-.Dd June 25, 2007
+.Dd July 2, 2007
 .Dt VCL 7
 .Os
 .Sh NAME
@@ -240,6 +240,8 @@
 .Cm vcl_pass .
 .It Cm deliver
 Deliver the cached object to the client.
+Control will eventually pass to
+.Cm vcl_deliver .
 .El
 .\" vcl_miss
 .It Cm vcl_miss
@@ -282,7 +284,23 @@
 .Cm vcl_pass .
 .It Cm insert
 Insert the object into the cache, then deliver it to the client.
+Control will eventually pass to
+.Cm vcl_deliver .
 .El
+.\" vcl_deliver
+.It Cm vcl_deliver
+Called before a cached object is delivered to the client.
+.Pp
+The
+.Cm vcl_deliver
+subroutine may terminate with one of the following keywords:
+.Bl -tag -width "discard"
+.It Cm error Ar code Op Ar reason
+Return the specified error code to the client and abandon the
+request.
+.It Cm deliver
+Deliver the object to the client.
+.El
 .\" vcl_timeout
 .It Cm vcl_timeout
 Called by the reaper thread shortly before a cached document reaches
@@ -423,6 +441,10 @@
     insert;
 }
 
+sub vcl_deliver {
+    deliver;
+}
+
 sub vcl_discard {
     discard;
 }




More information about the varnish-commit mailing list