We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1293df8 commit 69afb94Copy full SHA for 69afb94
http_cache.rst
@@ -220,8 +220,8 @@ The *easiest* way to cache a response is by caching it for a specific amount of
220
// somehow create a Response object, like by rendering a template
221
$response = $this->render('blog/index.html.twig', []);
222
223
- // cache for 600 seconds
224
- $response->setSharedMaxAge(600);
+ // cache for 3600 seconds
+ $response->setSharedMaxAge(3600);
225
226
// (optional) set a custom Cache-Control directive
227
$response->headers->addCacheControlDirective('must-revalidate', true);
0 commit comments