From c91b5eaaa9b35ecdb4ac57d34ffb06e171eddfe8 Mon Sep 17 00:00:00 2001 From: des Date: Fri, 3 Aug 2007 18:46:43 +0000 Subject: [PATCH] Synchronize these two files. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1793 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/etc/default.vcl | 15 ++++++++++++++- varnish-cache/man/vcl.7 | 8 ++++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/varnish-cache/etc/default.vcl b/varnish-cache/etc/default.vcl index 6b5ddbfa..a8886549 100644 --- a/varnish-cache/etc/default.vcl +++ b/varnish-cache/etc/default.vcl @@ -75,14 +75,27 @@ backend default { # if (!obj.cacheable) { # pass; # } -# if (resp.http.Set-Cookie) { +# if (obj.http.Set-Cookie) { # pass; # } # insert; #} # +# +## Called before a cached object is delivered to the client +# +#sub vcl_deliver { +# deliver; +#} +# ## Called when an object nears its expiry time # #sub vcl_timeout { # discard; #} +# +## Called when an object is about to be discarded +# +#sub vcl_discard { +# discard; +#} diff --git a/varnish-cache/man/vcl.7 b/varnish-cache/man/vcl.7 index 17deb227..4ce39153 100644 --- a/varnish-cache/man/vcl.7 +++ b/varnish-cache/man/vcl.7 @@ -28,7 +28,7 @@ .\" .\" $Id$ .\" -.Dd July 13, 2007 +.Dd August 3, 2007 .Dt VCL 7 .Os .Sh NAME @@ -474,7 +474,7 @@ sub vcl_fetch { The following code is the equivalent of the default configuration with the backend address set to "backend.example.com" and no backend port specified. -.\" Keep this in synch with bin/varnishd/mgt_vcc.c +.\" Keep this in synch with bin/varnishd/mgt_vcc.c and etc/default.vcl .Bd -literal -offset 4n backend default { set backend.host = "backend.example.com"; @@ -534,11 +534,11 @@ sub vcl_deliver { deliver; } -sub vcl_discard { +sub vcl_timeout { discard; } -sub vcl_timeout { +sub vcl_discard { discard; } .Ed -- 2.39.5