MDL-73748 admin: Check for available updates daily on random time
commit38e05ba09f8e06143fba30098f7382a6fa84860c
authorDavid Mudrák <david@moodle.com>
Sun, 6 Feb 2022 20:53:44 +0000 (6 21:53 +0100)
committerDavid Mudrák <david@moodle.com>
Sun, 6 Feb 2022 21:02:34 +0000 (6 22:02 +0100)
tree75739db506a06c6b6dbac6a504941a7d286e4fc5
parent6652ec135b08e6633e7f82570edc65f7abb6c1f0
MDL-73748 admin: Check for available updates daily on random time

It's been a mistake to make every Moodle site out there to check for
available update every two hours, on the hour. We are experiencing
server load peaks that are harder and harder to deal with.

The patch addresses this by (1) checking for available updates just once
a day and (2) distributing the checking times randomly around the clock.
lib/db/tasks.php