mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
Merge branch 'MDL-75369-master' of https://github.com/sammarshallou/moodle
This commit is contained in:
commit
e6fd69fae9
3
cache/stores/redis/lib.php
vendored
3
cache/stores/redis/lib.php
vendored
@ -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;
|
||||
}
|
||||
|
@ -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 ";
|
||||
|
Loading…
x
Reference in New Issue
Block a user