git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1567
d4fa192b-c00b-0410-8231-
f00ffab90ce4
.\"
.\" $Id$
.\"
-.Dd March 28, 2007
+.Dd June 25, 2007
.Dt VCL 7
.Os
.Sh NAME
.El
.\" vcl_timeout
.It Cm vcl_timeout
-Called by the reaper thread when a cached document has reached its
-expiry time.
+Called by the reaper thread shortly before a cached document reaches
+its expiry time.
.Pp
The
.Cm vcl_timeout
.It Cm discard
Discard the object.
.El
+.\" vcl_discard
+.It Cm vcl_discard
+Called by the reaper thread when a cached document is about to be
+discarded, either because it has expired or because space is running
+low.
+.Pp
+The
+.Cm vcl_discard
+subroutine may terminate with one of the following keywords:
+.Bl -tag -width "discard"
+.It Cm discard
+Discard the object.
+.It Cm keep
+Keep the object in cache.
+.El
.El
.Pp
If one of these subroutines is left undefined or terminates without
insert;
}
+sub vcl_discard {
+ discard;
+}
+
sub vcl_timeout {
discard;
}