mirror of
https://gitnet.fr/deblan/gist.git
synced 2021-08-14 08:30:49 +02:00
Cache
This commit is contained in:
parent
001901a8f7
commit
f36783b2ce
@ -198,6 +198,7 @@ abstract class Controller
|
|||||||
$ttl = 3600 * 24 * 7;
|
$ttl = 3600 * 24 * 7;
|
||||||
$response->setTtl($ttl);
|
$response->setTtl($ttl);
|
||||||
$response->setClientTtl($ttl);
|
$response->setClientTtl($ttl);
|
||||||
|
$response->setExpires(new \DateTime('now +7 days'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
|
Loading…
Reference in New Issue
Block a user