aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-12-06 12:29:56 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-12-06 12:29:56 +0100
commitbe503ca9cf99b64d5d0b0398f3cf781345f2bc60 (patch)
tree746f9eec3005b881fa57bd900529974b6dc2c6f6
parent91889acfc1bcfa6c86a3a897b58bf6db86987246 (diff)
revert changes to memcached cache, re #4768
This reverts commit 6139c8d1d5c1c93b096c00c892c98cda377f918e.
-rw-r--r--lib/classes/cache/MemcachedCache.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/classes/cache/MemcachedCache.php b/lib/classes/cache/MemcachedCache.php
index d530a7a..a540959 100644
--- a/lib/classes/cache/MemcachedCache.php
+++ b/lib/classes/cache/MemcachedCache.php
@@ -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);
}
}