summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2014-12-17 18:07:08 +0100
committerAndreas Fischer <bantu@owncloud.com>2014-12-17 18:10:11 +0100
commitfcf3c5197feb0b3bc2f9e9b747a08dc83fe973d8 (patch)
treefbb834feee9cb9fc26395ea984fa2bb60db2ae4e
parent532ba99f1ccc092dc5ddfbc15b70a027bca3e558 (diff)
downloadnextcloud-server-fcf3c5197feb0b3bc2f9e9b747a08dc83fe973d8.tar.gz
nextcloud-server-fcf3c5197feb0b3bc2f9e9b747a08dc83fe973d8.zip
HHVM: Add workaround for missing Memcached::deleteMulti()
-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;
}