Permalink
Browse files

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
  • Loading branch information...
weaverryan committed Mar 19, 2014
2 parents 4fbf1cd + da50d9b commit 65150f989d84c3590aa43dc29b71856378bb2351
Showing with 5 additions and 5 deletions.
  1. +5 −5 cookbook/templating/render_without_controller.rst
@@ -95,7 +95,7 @@ other variables in your route, you can control exactly how your page is cached:
_controller: FrameworkBundle:Template:template
template: 'AcmeBundle:Static:privacy.html.twig'
maxAge: 86400
sharedMaxAge: 86400
sharedAge: 86400
.. code-block:: xml
@@ -109,7 +109,7 @@ other variables in your route, you can control exactly how your page is cached:
<default key="_controller">FrameworkBundle:Template:template</default>
<default key="template">AcmeBundle:Static:privacy.html.twig</default>
<default key="maxAge">86400</default>
<default key="sharedMaxAge">86400</default>
<default key="sharedAge">86400</default>
</route>
</routes>
@@ -123,15 +123,15 @@ other variables in your route, you can control exactly how your page is cached:
'_controller' => 'FrameworkBundle:Template:template',
'template' => 'AcmeBundle:Static:privacy.html.twig',
'maxAge' => 86400,
'sharedMaxAge' => 86400,
'sharedAge' => 86400,
)));
return $collection;
The ``maxAge`` and ``sharedMaxAge`` values are used to modify the Response
The ``maxAge`` and ``sharedAge`` values are used to modify the Response
object created in the controller. For more information on caching, see
:doc:`/book/http_cache`.
There is also a ``private`` variable (not shown here). By default, the Response
will be made public, as long as ``maxAge`` or ``sharedMaxAge`` are passed.
will be made public, as long as ``maxAge`` or ``sharedAge`` are passed.
If set to ``true``, the Response will be marked as private.

0 comments on commit 65150f9

Please sign in to comment.