diff options
author | Andreas Fischer <bantu@owncloud.com> | 2014-12-17 18:07:08 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2014-12-17 18:10:11 +0100 |
commit | fcf3c5197feb0b3bc2f9e9b747a08dc83fe973d8 (patch) | |
tree | fbb834feee9cb9fc26395ea984fa2bb60db2ae4e | |
parent | 532ba99f1ccc092dc5ddfbc15b70a027bca3e558 (diff) | |
download | nextcloud-server-fcf3c5197feb0b3bc2f9e9b747a08dc83fe973d8.tar.gz nextcloud-server-fcf3c5197feb0b3bc2f9e9b747a08dc83fe973d8.zip |
HHVM: Add workaround for missing Memcached::deleteMulti()
-rw-r--r-- | lib/private/memcache/memcached.php | 8 |
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; } |