diff --git a/lib/private/memcache/memcached.php b/lib/private/memcache/memcached.php index cd8e2e8d0b..042fead334 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; }