aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Memcache/Memcached.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Memcache/Memcached.php')
-rw-r--r--lib/private/Memcache/Memcached.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Memcache/Memcached.php b/lib/private/Memcache/Memcached.php
index 12f45739374..f0cb4ae99db 100644
--- a/lib/private/Memcache/Memcached.php
+++ b/lib/private/Memcache/Memcached.php
@@ -110,7 +110,9 @@ class Memcached extends Cache implements IMemcache {
} else {
$result = self::$cache->set($this->getNamespace() . $key, $value);
}
- $this->verifyReturnCode();
+ if ($result !== true) {
+ $this->verifyReturnCode();
+ }
return $result;
}