Commit e4949298 authored by Nils Goroll's avatar Nils Goroll

doc: move example to the right place

parent ef0d8ec1
...@@ -229,7 +229,17 @@ threads required without relevant drawbacks ...@@ -229,7 +229,17 @@ threads required without relevant drawbacks
request are cacheable, and thus are highly likely to lead to cache request are cacheable, and thus are highly likely to lead to cache
hits. hits.
XXX ... Also see the discussion below for more detail. Example::
# Activate serial mode at ESI level > 0, if we know that all includes
# in the response at this level lead to cacheable responses.
sub vcl_deliver {
pesi.activate();
if (req.esi_level > 0 && req.url == "/all/cacheable/includes") {
pesi.set(serial, true);
}
}
``thread`` ``thread``
---------- ----------
...@@ -294,18 +304,6 @@ the following reasons: ...@@ -294,18 +304,6 @@ the following reasons:
In short, keeping ``thread`` at the default ``true`` should be the In short, keeping ``thread`` at the default ``true`` should be the
right option, the alternative exists just in case. right option, the alternative exists just in case.
Example::
# Activate serial mode at ESI level > 0, if we know that all includes
# in the response at this level lead to cacheable responses.
sub vcl_deliver {
pesi.activate();
if (req.esi_level > 0 && req.url == "/all/cacheable/includes") {
pesi.set(serial, true);
}
}
$Function VOID workspace_prealloc(BYTES min_free=4096, INT max_nodes=32) $Function VOID workspace_prealloc(BYTES min_free=4096, INT max_nodes=32)
Configure workspace pre-allocation of objects in variable-sized Configure workspace pre-allocation of objects in variable-sized
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment