• Resolved franc3sc0s92

    (@franc3sc0s92)


    Hi, i want mailchimp on my store. I ve a problem with add to cart, without mailchimp 500ms with mailchimp 2s.
    This is a problem!
    Is there a way to install mailchim only for registration and total?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author ryanhungate

    (@ryanhungate)

    @franc3sc0s92 when you say 2 seconds, what exactly do you mean? Where did you get this stat from? The plugin is also submitting data to Mailchimp for sending abandoned cart automations – but it’s doing that in another request. This should not be impacting the load time of the cart itself.

    If it is actually impacting the site’s performance, we would like to know a little more about your hosting plan, provider, etc.

    Please give us a few more details on your findings and we’ll be more than happy to take a look at that for you on our testing environments.

    Correct, in the waterfall report of gtmetrics i’ve noticed 1,4 second delay because of this plugin: busy with this
    https://www.domain.be/wp-json/mailchimp-for-woocommerce/v1/queue/work

    Don’t get it why this should be fired on every page.

    Same problem here.
    Gtmetrix waterfall shows 2.15s waiting time for
    /wp-json/mailchimp-for-woocommerce/v1/queue/work

    will be glad for an improvement

    Plugin Author ryanhungate

    (@ryanhungate)

    @webcart and @davelo this is actually done on purpose. It may seem like it’s a performance problem but in reality it’s just the nature of how the queue works. It stays alive with a while loop to process jobs that are in the queue right at that time.

    One other thing to mention is that these requests should be happening out of the way of the actual page load times, running in a completely separate PHP process. We make use of the timeout feature of CURL to just accept the request and process it in the background.

    That being said, you do have the option to kill the process one job at a time, and the queue will not do the typical polling as I just described by setting a constant of:

    define('MAILCHIMP_DISABLE_QUEUE', true); in your wp-config.php file.

    We don’t recommend this for busier sites, but if you’ve got a shop that doesn’t have lots of shopping activity it may be fine to do so.

    We also have the ability to turn off the “http based processing” and run the queue system in the command line mode. You can find the simple documentation on this here https://github.com/mailchimp/mc-woocommerce/wiki/Advanced-Queue-Setup-In-CLI-mode

    • This reply was modified 5 years, 8 months ago by ryanhungate.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Mailchimp slow.’ is closed to new replies.