MailPoet Cronjob on large Multisite / WP-CLI
-
Hi,
we are running MailPoet on a Multisite environment with >100 sites on it (kind of comparable to something worpress.com ish). Each site has MailPoet activated in Single Site Mode.
The usual way of running your cronjob via visiting the site (or the admin backend as well) is not an option for us anymore, as it is running over 1s in each and every request. We did some profiling and found out that this is one of the #1 performance killers in the installation. This is totaly slowing down especially the backend.For any other wp-crons we have a wp-cli based script running, which will iterate over all sites and executes all the outstanding cron actions in a 5 minute interval.
We switched MailPoet to the “Let the Server call the cronjob” mode. But sadly it looks as if your wp-cron actions are not enqueued into the regular queue. At least the “wp cron event list” command does not show them.Further more not a single mail is sent, whereas all other crons are executed successfully. Calling the specified URL via curl / wget is no option due to scalability reasons. We simply cannot add a cron manually for each site. As we like to work as performant as possible, using WP-CLI seems to be the best way to go on large-scale.
Do you have any advices on how to use MailPoet in such a usecase performant and scalable? Or do we have an issue with calling the wp-cron incorrectly to get your cron actions as well?
Best Regards, thanks alot upfront,
Jan
The topic ‘MailPoet Cronjob on large Multisite / WP-CLI’ is closed to new replies.