From 9e4f7ab47aa67ca97a5bcf68b5efe69809ba4c8c Mon Sep 17 00:00:00 2001 From: Zairig Imad Date: Tue, 11 Feb 2020 23:25:05 +0100 Subject: [PATCH] [Templating] added the `private` parameter in the TemplateController example --- templates.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/templates.rst b/templates.rst index a843db21c03..4bad36eb9a7 100644 --- a/templates.rst +++ b/templates.rst @@ -476,6 +476,9 @@ provided by Symfony: # special options defined by Symfony to set the page cache maxAge: 86400 sharedAge: 86400 + + # whether or not caching should apply for client caches only + private: true .. code-block:: xml @@ -494,6 +497,8 @@ provided by Symfony: 86400 86400 + + true @@ -513,6 +518,9 @@ provided by Symfony: // special options defined by Symfony to set the page cache 'maxAge' => 86400, 'sharedAge' => 86400, + + // whether or not caching should apply for client caches only + 'private' => true, ]) ; };