diff --git a/http_cache/esi.rst b/http_cache/esi.rst index a166a01762e..7229608665e 100644 --- a/http_cache/esi.rst +++ b/http_cache/esi.rst @@ -174,9 +174,8 @@ of the main page:: { public function latest($maxPerPage) { - // ... - $response->setPublic(); - $response->setMaxAge(60); + // sets to public and adds some expiration + $response->setSharedMaxAge(60); return $response; }