matomo-org / matomo-for-wordpress

Get a fully functioning Matomo Analytics for your WordPress. Star us on Github? +1. Matomo is the leading open alternative to Google Analytics that gives you full control over your data. Privacy is built-in. 100% data ownership, no one else can see your data. We love Pull Requests!
https://matomo.org
GNU General Public License v3.0
119 stars 25 forks source link

Have a two step update process #101

Open tsteur opened 4 years ago

tsteur commented 4 years ago

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 commented 4 years ago

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