Skip to content

Commit 479b314

Browse files
committed
Merge branch '5.0'
* 5.0: fixed cs [Templating] added the `private` parameter in the TemplateController example
2 parents 51cf90f + a75e01d commit 479b314

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

templates.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,9 @@ provided by Symfony:
477477
maxAge: 86400
478478
sharedAge: 86400
479479
480+
# whether or not caching should apply for client caches only
481+
private: true
482+
480483
# optionally you can define some arguments passed to the template
481484
context:
482485
site_name: 'ACME'
@@ -500,6 +503,9 @@ provided by Symfony:
500503
<default key="maxAge">86400</default>
501504
<default key="sharedAge">86400</default>
502505
506+
<!-- whether or not caching should apply for client caches only -->
507+
<default key="private">true</default>
508+
503509
<!-- optionally you can define some arguments passed to the template -->
504510
<default key="context">
505511
<default key="site_name">ACME</default>
@@ -525,6 +531,9 @@ provided by Symfony:
525531
'maxAge' => 86400,
526532
'sharedAge' => 86400,
527533
534+
// whether or not caching should apply for client caches only
535+
'private' => true,
536+
528537
// optionally you can define some arguments passed to the template
529538
'context' => [
530539
'site_name' => 'ACME',

0 commit comments

Comments
 (0)