Skip to content
Snippets Groups Projects
Commit ef2407d5 authored by André Noack's avatar André Noack Committed by Elmar Ludwig
Browse files

Resolve "Stud.IP-Cache funktioniert nicht mehr"

Closes #2979

Merge request studip/studip!2021
parent 48dcb499
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,10 @@ class StudipCacheWrapper implements StudipCache
*/
public function write($name, $content, $expires = self::DEFAULT_EXPIRATION)
{
$this->memory_cache->expire($name);
$this->actual_cache->write($name, $content, $expires);
if ($this->actual_cache->write($name, $content, $expires)) {
return $this->memory_cache->write($name, $content, $expires);
} else {
return false;
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment