Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 65150f9

Browse filesBrowse files
committed
bug #3637 Update render_without_controller.rst (94noni)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #3637). Discussion ---------- Update render_without_controller.rst It appears that it is not **sharedMaxAge**: 86400 but **sharedAge**: 86400 Commits ------- 68b5aa8 Update render_without_controller.rst 8372382 Update render_without_controller.rst
2 parents 4fbf1cd + da50d9b commit 65150f9
Copy full SHA for 65150f9

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎cookbook/templating/render_without_controller.rst

Copy file name to clipboardExpand all lines: cookbook/templating/render_without_controller.rst
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ other variables in your route, you can control exactly how your page is cached:
9595
_controller: FrameworkBundle:Template:template
9696
template: 'AcmeBundle:Static:privacy.html.twig'
9797
maxAge: 86400
98-
sharedMaxAge: 86400
98+
sharedAge: 86400
9999
100100
.. code-block:: xml
101101
@@ -109,7 +109,7 @@ other variables in your route, you can control exactly how your page is cached:
109109
<default key="_controller">FrameworkBundle:Template:template</default>
110110
<default key="template">AcmeBundle:Static:privacy.html.twig</default>
111111
<default key="maxAge">86400</default>
112-
<default key="sharedMaxAge">86400</default>
112+
<default key="sharedAge">86400</default>
113113
</route>
114114
</routes>
115115
@@ -123,15 +123,15 @@ other variables in your route, you can control exactly how your page is cached:
123123
'_controller' => 'FrameworkBundle:Template:template',
124124
'template' => 'AcmeBundle:Static:privacy.html.twig',
125125
'maxAge' => 86400,
126-
'sharedMaxAge' => 86400,
126+
'sharedAge' => 86400,
127127
)));
128128
129129
return $collection;
130130
131-
The ``maxAge`` and ``sharedMaxAge`` values are used to modify the Response
131+
The ``maxAge`` and ``sharedAge`` values are used to modify the Response
132132
object created in the controller. For more information on caching, see
133133
:doc:`/book/http_cache`.
134134

135135
There is also a ``private`` variable (not shown here). By default, the Response
136-
will be made public, as long as ``maxAge`` or ``sharedMaxAge`` are passed.
136+
will be made public, as long as ``maxAge`` or ``sharedAge`` are passed.
137137
If set to ``true``, the Response will be marked as private.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.