Merge branch 'MDL-75369-master' of https://github.com/sammarshallou/moodle

This commit is contained in:
Víctor Déniz 2022-09-14 19:50:56 +01:00
commit e6fd69fae9
2 changed files with 1 additions and 3 deletions

View File

@ -216,8 +216,7 @@ class cachestore_redis extends cache_store implements cache_is_key_aware, cache_
if (!empty($prefix)) {
$redis->setOption(Redis::OPT_PREFIX, $prefix);
}
// Database setting option...
$this->isready = $this->ping($redis);
$this->isready = true;
} else {
$this->isready = false;
}

View File

@ -227,7 +227,6 @@ class redis extends handler {
throw new RedisException('Unable to select Redis database '.$this->database.'.');
}
}
$this->connection->ping();
return true;
} catch (RedisException $e) {
$logstring = "Failed to connect (try {$counter} out of {$maxnumberofretries}) to redis ";