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
0c823a89
Commit
0c823a89
authored
Sep 17, 2018
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
an attempt to clarify req.grace/req.ttl
parent
2cb5e532
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
upgrading-6.1.rst
doc/sphinx/whats-new/upgrading-6.1.rst
+7
-5
No files found.
doc/sphinx/whats-new/upgrading-6.1.rst
View file @
0c823a89
...
@@ -49,11 +49,13 @@ VCL variables
...
@@ -49,11 +49,13 @@ VCL variables
since there are use cases that cannot be solved without it. Similarly,
since there are use cases that cannot be solved without it. Similarly,
``req.ttl`` used to be deprecated and is now fully supported again.
``req.ttl`` used to be deprecated and is now fully supported again.
``req.ttl`` and ``req.grace`` set upper bounds on the TTL and grace
``req.ttl`` and ``req.grace`` limit the ttl and grace times that are
times that are permitted for the current request -- if these variables
permitted for the current request. If ``req.ttl`` is set, it requires
are set and the TTL/grace of a cache object is longer than their
cache objects to have that minimum remaining ttl to be considered
settings, then a new response is fetched from the backend, despite the
fresh. Likewise, ``req.grace`` sets an upper bound on the time an
presence of an otherwise fresh cache object.
object has spent in grace to be considered eligible for grace mode
(which is to deliver this object and fetch a fresh copy in the
background).
A common application is to set shorter TTLs when the backend is known
A common application is to set shorter TTLs when the backend is known
to be healthy, so that responses are fresher when all is well. But if
to be healthy, so that responses are fresher when all is well. But if
...
...
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