catalyst / moodle-auth_outage

Planned, graduated user and admin friendly moodle outages
https://moodle.org/plugins/auth_outage
17 stars 33 forks source link

Outage is always adding some small db overhead on each page bootstrap #209

Closed brendanheywood closed 2 years ago

brendanheywood commented 3 years ago

https://wrms.catalyst.net.nz/wr.php?request_id=345128

Whatever config we need, consider adding this to the main core config instead of plugin config to avoid a second muc / db call during bootstrap

https://github.com/catalyst/moodle-auth_outage/blob/master/classes/dml/outagedb.php#L214-L224

A simple approach: