• 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

    https://wordpress.org/plugins/wysija-newsletters/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi,

    Can you change your sending frequency to something different than what you have?

    Let us know if this will get your cron schedule is added to the list.

    Thread Starter janthiel

    (@janthiel)

    Set to “50 Mails every 5 Minutes” on /wp-admin/admin.php?page=wysija_config#tab-multisite. It was at “every hour” before.

    But I still cannot see any hook related to MailPoet with wp cron event list for the site.

    Which hook should appear in the Cron list?
    Any other thoughts?

    Thanks!

    Jan

    Thread Starter janthiel

    (@janthiel)

    Hey MailPoet Team,

    any other ideas?

    Thanks,
    Jan

    @janthiel you’ll definitely need to hit these individual URLs one by one. You can’t execute MailPoet newsletter’s queue without hitting that exactly URL. Also, please try to open one of these URLs in your browser, just to make sure they are working.

    Send us one of these URLs if possible.

    Thread Starter janthiel

    (@janthiel)

    Hi Mailpoet,

    the URL from the Backend is working. I get the Message:
    “MailPoet’s cron is ready. Simply setup a CRON job on your server (cpanel or other) to trigger this page.”
    I can send you the URL if you want to. Can you give me a direct contact? Or you can directly reach me at “jan AT wlwp DOT eu”.

    Sad to hear that this is (and will be?) the only way. As it totaly breaks with any scalability and automation on WordPress Multisites. As I initialy wrote, the Mailpoet Cron takes 1s of Backend Loading on our Multisite, which isn’t reasonable. I did some intense testing with New Relic and the MP Cron clearly is one of the performance killers we have to exterminate…

    Is there any chance, that you will change this behaviour by either supporting WP-CLI or offering an option to enqueue your MP Crons to the standard WP Cron System?
    Is this a Feature we can support you developing by investing in an agency license for example?

    We would love to stick with Mailpoet, but it has to be scalable and performant.

    Happy to hear from you!

    Have a great night,

    Jan

    Hi,

    Can you contact us here? http://support.mailpoet.com/wordpress-forums/

    Thanks in advance.

    Hello,

    We have a similar need, we are premium customer. Have you advanced on a solution based on WP-CLI?
    Thank you
    Alexandre Joffre

    Got the same problem, non-tech Admins need scheduled Mailpoet newsletters on a Network, and 3rd-party isn’t an easy option. Would like to stick with Mailpoet but need a way around this problem. Any solutions?

    cheers,
    Dave

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘MailPoet Cronjob on large Multisite / WP-CLI’ is closed to new replies.