From 4568f8372d745db1f32da11c1282fab043f6fded Mon Sep 17 00:00:00 2001 From: Ayyoub BOUMYA Date: Tue, 2 Aug 2016 15:27:06 +0100 Subject: [PATCH] Fix a typo in an HTTP Cache code example --- http_cache.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http_cache.rst b/http_cache.rst index 898a7a3a69d..f7319c16fb6 100644 --- a/http_cache.rst +++ b/http_cache.rst @@ -221,8 +221,8 @@ The *easiest* way to cache a response is by caching it for a specific amount of // somehow create a Response object, like by rendering a template $response = $this->render('blog/index.html.twig', []); - // cache for 600 seconds - $response->setSharedMaxAge(600); + // cache for 3600 seconds + $response->setSharedMaxAge(3600); // (optional) set a custom Cache-Control directive $response->headers->addCacheControlDirective('must-revalidate', true);