summaryrefslogtreecommitdiffstats
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.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/private/memcache/memcached.php b/lib/private/memcache/memcached.php
index cd8e2e8d0b6..042fead3347 100644
--- a/lib/private/memcache/memcached.php
+++ b/lib/private/memcache/memcached.php
@@ -74,7 +74,13 @@ class Memcached extends Cache {
$keys[] = $key;
}
}
- self::$cache->deleteMulti($keys);
+ if (method_exists(self::$cache, 'deleteMulti')) {
+ self::$cache->deleteMulti($keys);
+ } else {
+ foreach ($keys as $key) {
+ self::$cache->delete($key);
+ }
+ }
return true;
}