matomo-for-wordpress icon indicating copy to clipboard operation
matomo-for-wordpress copied to clipboard

Have a two step update process

Open tsteur opened this issue 6 years ago • 1 comments

Currently, when someone updates Matomo, WP-Matomo will automatically execute the update. This is usually not an issue unless there's a major Matomo update.

Ideally we have a similar possibility as in On-Premise where a user is presented some kind of notice and can then trigger the update... we could also change behaviour to in general run the update using a scheduled tasks/WP-Cron but then it may be executed in the frontend which may be worse... we could have maybe some logic though to only trigger it in admin OR we check whether DISABLE_WP_CRON is enabled and then run updates in the background during wp-cron instead of immediately. If WP-Cron is not executed as often the problem may be though that Matomo will be for a while in an "not up to date" state...

I will for now quickly work on adding a command for WP-cli

tsteur avatar Nov 21 '19 19:11 tsteur

For now created this solution until there's something for the UI: https://matomo.org/faq/wordpress/#i-have-a-high-traffic-website-how-do-i-disable-automatic-execution-of-db-upgrades

tsteur avatar Nov 21 '19 20:11 tsteur