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

revert changes to memcached cache, re #4768

This reverts commit 6139c8d1.
parent 91889acf
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(unserialize($value));
$item->set($value);
}
return $item;
}
......@@ -158,6 +158,6 @@ class MemcachedCache extends Cache
}
$real_key = $this->getCacheKey($item->getKey());
return $this->memcache->set($real_key, serialize($item->get()), $expiration);
return $this->memcache->set($real_key, $item->get(), $expiration);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment