Skip to content
Snippets Groups Projects
Commit 6139c8d1 authored by Thomas Hackl's avatar Thomas Hackl
Browse files

Resolve "MemcachedCache übergibt Werte nicht serialisiert"

Closes #4768

Merge request studip/studip!3554
parent 73b9dbdf
No related branches found
No related tags found
No related merge requests found
......@@ -133,7 +133,7 @@ class MemcachedCache extends Cache
if ($this->memcache->getResultCode() !== Memcached::RES_NOTFOUND) {
// Set the value, even if it is the boolean value false:
$item->setHit();
$item->set($value);
$item->set(unserialize($value));
}
return $item;
}
......@@ -158,6 +158,6 @@ class MemcachedCache extends Cache
}
$real_key = $this->getCacheKey($item->getKey());
return $this->memcache->set($real_key, $item->get(), $expiration);
return $this->memcache->set($real_key, serialize($item->get()), $expiration);
}
}
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