Skip to content

Commit

Permalink
Merge branch 'MDL-72796_M311_fix-retry-delay-for-redis-session-cache'…
Browse files Browse the repository at this point in the history
… of https://github.com/ziegenberg/moodle into MOODLE_311_STABLE
  • Loading branch information
andrewnicols committed Dec 7, 2021
2 parents 1d16b4b + 0ad2a91 commit 5dc1b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/classes/session/redis.php
Expand Up @@ -193,7 +193,7 @@ public function init() {

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)) {
Expand Down

0 comments on commit 5dc1b69

Please sign in to comment.