Skip to content
Snippets Groups Projects
Commit 38df3d04 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fix db cache expiration time, fixes #4436

Closes #4436

Merge request studip/studip!3511
parent 1380d8e4
Branches
No related tags found
No related merge requests found
...@@ -137,7 +137,7 @@ class DbCache extends Cache ...@@ -137,7 +137,7 @@ class DbCache extends Cache
return DBManager::get()->execute( return DBManager::get()->execute(
'REPLACE INTO `cache` VALUES (?, ?, ?)', 'REPLACE INTO `cache` VALUES (?, ?, ?)',
[$item->getKey(), serialize($item->get()), $expiration] [$item->getKey(), serialize($item->get()), time() + $expiration]
); );
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment