Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
5b65d5a8
Commit
5b65d5a8
authored
Aug 30, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document vcl_init{} and vcl_fini{}
Fixes #990
parent
f2d9ff1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
vcl.rst
doc/sphinx/reference/vcl.rst
+21
-0
No files found.
doc/sphinx/reference/vcl.rst
View file @
5b65d5a8
...
...
@@ -62,7 +62,9 @@ depending on context one of
* error
* fetch
* hash
* hit_for_pass
* lookup
* ok
* pass
* pipe
* restart
...
...
@@ -382,6 +384,15 @@ decide how the request should be handled. Each subroutine terminates
by calling one of a small number of keywords which indicates the
desired outcome.
vcl_init
Called when VCL is loaded, before any requests pass through it.
Typically used to initialize VMODs.
return() values:
ok
Normal return, VCL continues loading.
vcl_recv
Called at the beginning of a request, after the complete request has
been received and parsed. Its purpose is to decide whether or not
...
...
@@ -545,6 +556,16 @@ vcl_error
of restarts is higher than *max_restarts* varnish emits a guru meditation
error.
vcl_fini
Called when VCL is discarded only after all requests have exited the VCL.
Typically used to clean up VMODs.
return() values:
ok
Normal return, VCL will be discarded.
If one of these subroutines is left undefined or terminates without
reaching a handling decision, control will be handed over to the
builtin default. See the EXAMPLES section for a listing of the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment