Cache
This commit is contained in:
parent
b43baac802
commit
6e848f0982
1 changed files with 3 additions and 1 deletions
|
|
@ -195,7 +195,9 @@ abstract class Controller
|
|||
$response = new Response($body);
|
||||
|
||||
if (empty($params['no_cache'])) {
|
||||
$response->setTtl(3600 * 24 * 7);
|
||||
$ttl = 3600 * 24 * 7;
|
||||
$response->setTtl($ttl);
|
||||
$response->setClientTtl($ttl);
|
||||
}
|
||||
|
||||
return $response;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue