aboutsummaryrefslogtreecommitdiff
path: root/caches/FileCache.php
diff options
context:
space:
mode:
Diffstat (limited to 'caches/FileCache.php')
-rw-r--r--caches/FileCache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/caches/FileCache.php b/caches/FileCache.php
index 2f4b3ad5..09d12791 100644
--- a/caches/FileCache.php
+++ b/caches/FileCache.php
@@ -49,8 +49,8 @@ class FileCache implements CacheInterface
{
$item = [
'key' => $key,
- 'value' => $value,
'expiration' => $ttl === null ? 0 : time() + $ttl,
+ 'value' => $value,
];
$cacheFile = $this->createCacheFile($key);
$bytes = file_put_contents($cacheFile, serialize($item), LOCK_EX);