diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-08-14 12:18:41 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-08-14 12:18:58 +0300 |
commit | c3c473707d784c4dde26ca0abbd037c2715f34cc (patch) | |
tree | 57e7cb01120feaca388012edb16c685e7b4c7920 /lib | |
parent | aa84a26d84ee5533537219b70a9e224f2aa430c1 (diff) |
Fix hard-coded cache interval and use argument instead
Fixes https://github.com/nextcloud/mail/issues/996.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Http/CacheHeaders.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Http/CacheHeaders.php b/lib/Http/CacheHeaders.php index 8887b8583..c1ec0c999 100644 --- a/lib/Http/CacheHeaders.php +++ b/lib/Http/CacheHeaders.php @@ -33,7 +33,7 @@ use OCP\AppFramework\Utility\ITimeFactory; trait CacheHeaders { public function setCacheHeaders(int $cacheFor, ITimeFactory $timeFactory) { - $this->cacheFor(7 * 24 * 60 * 60); + $this->cacheFor($cacheFor); $expires = new DateTime(); $expires->setTimestamp($timeFactory->getTime()); |