Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-08-14 12:18:41 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-08-14 12:18:58 +0300
commitc3c473707d784c4dde26ca0abbd037c2715f34cc (patch)
tree57e7cb01120feaca388012edb16c685e7b4c7920 /lib
parentaa84a26d84ee5533537219b70a9e224f2aa430c1 (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.php2
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());