8000 feature #13104 [Templating] added the `private` parameter in the Temp… · symfony/symfony-docs@4a66d9a · GitHub
[go: up one dir, main page]

Skip to content

Commit 4a66d9a

Browse files
committed
feature #13104 [Templating] added the private parameter in the TemplateController example (zairigimad)
This PR was submitted for the 5.0 branch but it was squashed and merged into the 4.4 branch instead (closes #13104). Discussion ---------- [Templating] added the `private` parameter in the TemplateController example Commits ------- 9e4f7ab [Templating] added the `private` parameter in the TemplateController example
2 parents b244724 + 9e4f7ab commit 4a66d9a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

templates.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,9 @@ provided by Symfony:
476476
# special options defined by Symfony to set the page cache
477477
maxAge: 86400
478478
sharedAge: 86400
479+
480+
# whether or not caching should apply for client caches only
481+
private: true
479482
480483
.. code-block:: xml
481484
@@ -494,6 +497,8 @@ provided by Symfony:
494497
<!-- special options defined by Symfony to set the page cache -->
495498
<default key="maxAge">86400</default>
496499
<default key="sharedAge">86400</default>
500+
<!-- Whether or not caching should apply for client caches only -->
501+
<default key="private">true</default>
497502
</route>
498503
</routes>
499504
@@ -513,6 +518,9 @@ provided by Symfony:
513518
// special options defined by Symfony to set the page cache
514519
'maxAge' => 86400,
515520
'sharedAge' => 86400,
521+
522+
// whether or not caching should apply for client caches only
523+
'private' => true,
516524
])
517525
;
518526
};

0 commit comments

Comments
 (0)
0