From 38df3d04cc2293bb6950ed9105acaef8f9aeed18 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Tue, 22 Oct 2024 10:59:48 +0000 Subject: [PATCH] fix db cache expiration time, fixes #4436 Closes #4436 Merge request studip/studip!3511 --- lib/classes/cache/DbCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classes/cache/DbCache.php b/lib/classes/cache/DbCache.php index c7abef22a74..5714ce998ce 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] ); } } -- GitLab