MDL-56675 cachestore_memcached: Check all connected servers for support
This commit is contained in:
committed by
David Monllao
parent
e7e9d4c0b5
commit
5166e06e08
Vendored
+7
-3
@@ -261,9 +261,13 @@ class cachestore_memcached extends cache_store implements cache_is_configurable
|
||||
$safecombination = true;
|
||||
}
|
||||
|
||||
if (!$safecombination && (version_compare($this->connection->getVersion(), '1.4.22') <= 0)) {
|
||||
// This is memcached server version <= 1.4.22 which is a safe combination.
|
||||
$safecombination = true;
|
||||
if (!$safecombination) {
|
||||
$allsafe = true;
|
||||
foreach ($this->connection->getVersion() as $version) {
|
||||
$allsafe = $allsafe && (version_compare($version, '1.4.22') <= 0);
|
||||
}
|
||||
// All memcached servers connected are version <= 1.4.22 which is a safe combination.
|
||||
$safecombination = $allsafe;
|
||||
}
|
||||
|
||||
if (!$safecombination) {
|
||||
|
||||
Reference in New Issue
Block a user