8000 minor #6829 Fix a typo in an HTTP Cache code example (aybbou) · symfony/symfony-docs@d20a3c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit d20a3c0

Browse files
committed
minor #6829 Fix a typo in an HTTP Cache code example (aybbou)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #6829). Discussion ---------- Fix a typo in an HTTP Cache code example Commits ------- 69afb94 Fix a typo in an HTTP Cache code example
2 parents 1293df8 + 69afb94 commit d20a3c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http_cache.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ The *easiest* way to cache a response is by caching it for a specific amount of
220220
// somehow create a Response object, like by rendering a template
221221
$response = $this->render('blog/index.html.twig', []);
222222

223-
// cache for 600 seconds
224-
$response->setSharedMaxAge(600);
223+
// cache for 3600 seconds
224+
$response->setSharedMaxAge(3600);
225225

226226
// (optional) set a custom Cache-Control directive
227227
$response->headers->addCacheControlDirective('must-revalidate', true);

0 commit comments

Comments
 (0)
0