Affects Version/s: 3.2.6
Fix Version/s: None
We are experiencing some performance issues when running upgrades, either from the web frontend or the /admin/cli/upgrade.php script. It is hard to diagnose exactly which part of the script is causing the performance issues, as the script only shows output once a plugin has been installed (or failed to install).
I propose a verbose option is added to upgrade.php (such as --verbose), which would display some basic debug and performance related output at various points throughout the script, e.g.,:
- Purging caches...
- Caches purged in 600ms
- Running core upgrade...
- Core upgrade run in 1400ms
- Running non-core upgrade
- Non-core upgrade run in 2300ms
I will likely end up adding this in to our Moodle installation anyway, so that we can diagnose our performance issues. Happy to contribute what I write.