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
bb8e863d
Commit
bb8e863d
authored
Mar 20, 2014
by
Lasse Karstensen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reindent for spaces, explain obj changes.
parent
5e3e98f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
upgrading.rst
doc/sphinx/whats-new/upgrading.rst
+14
-9
No files found.
doc/sphinx/whats-new/upgrading.rst
View file @
bb8e863d
...
...
@@ -25,15 +25,14 @@ Use the hash director as a client director
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Since the client director was already a special case of the hash director, it has been removed, and you should use the hash director directly::
sub vcl_init {
new h = directors.hash();
h.add_backend(b1, 1);
h.add_backend(b2, 1);
}
sub vcl_recv {
set req.backend_hint = h.backend(client.ip);
}
sub vcl_init {
new h = directors.hash();
h.add_backend(b1, 1);
h.add_backend(b2, 1);
}
sub vcl_recv {
set req.backend_hint = h.backend(client.ip);
}
error() is now a return value
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
...
@@ -85,6 +84,12 @@ Any custom-made subs cannot be named 'vcl_*' anymore. This namespace is reserved
req.backend.healthy replaced by std.healthy(req.backend)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
obj is now read-only
~~~~~~~~~~~~~~~~~~~~
`obj` is now read-only. `obj.hits`, if enabled in VCL, now counts per objecthead,
not per object. `obj.last_use` has been retired.
Changes to parameters
=====================
...
...
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