Permalink
Browse files

Merge branch 'MDL-56675-master' of git://github.com/andrewnicols/moodle

  • Loading branch information...
dmonllao committed May 4, 2017
2 parents 175a51c + 28bf0a0 commit 03262b0469693e0e5adb1120de64e0cf91a07a6c
Showing with 7 additions and 3 deletions.
  1. +7 −3 cache/stores/memcached/lib.php
@@ -261,9 +261,13 @@ public function is_connection_ready() {
$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) {

0 comments on commit 03262b0

Please sign in to comment.