Merge branch 'MDL-72796_fix-retry-delay-for-redis-session-cache' of https://github.com/ziegenberg/moodle

This commit is contained in:
Andrew Nicols 2021-12-07 10:51:56 +08:00
commit 47a81d8844

View File

@ -193,7 +193,7 @@ class redis extends handler {
try {
$delay = rand(100000, 500000);
$delay = rand(100, 500);
// One second timeout was chosen as it is long for connection, but short enough for a user to be patient.
if (!$this->connection->connect($this->host, $this->port, 1, null, $delay)) {