aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-10-22 10:59:48 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-10-22 10:59:48 +0000
commit38df3d04cc2293bb6950ed9105acaef8f9aeed18 (patch)
tree072f2ac74d744f84dd7b6a430e72c616be354f31 /lib
parent1380d8e444d5961ecacd95dcb9dda6443da65acf (diff)
fix db cache expiration time, fixes #4436
Closes #4436 Merge request studip/studip!3511
Diffstat (limited to 'lib')
-rw-r--r--lib/classes/cache/DbCache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/classes/cache/DbCache.php b/lib/classes/cache/DbCache.php
index c7abef2..5714ce9 100644
--- a/lib/classes/cache/DbCache.php
+++ b/lib/classes/cache/DbCache.php
@@ -137,7 +137,7 @@ class DbCache extends Cache
return DBManager::get()->execute(
'REPLACE INTO `cache` VALUES (?, ?, ?)',
- [$item->getKey(), serialize($item->get()), $expiration]
+ [$item->getKey(), serialize($item->get()), time() + $expiration]
);
}
}