• Hi, the last weeks I’ve noticed that the backend of my webshop is very slow. It can easily take about 20-30 seconds to go from one place in the backend to another. I started troubleshooting the problem and found out that mailchimp for woocommerce is causing a lot of the slow loading.

    When deactivated the same backend test runs in about 6 seconds. Any ideas how to fix this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support khungate

    (@khungate)

    Hello,

    I came across your post regarding slow backend performance, which might be associated with the Mailchimp for WooCommerce plugin. It’s possible that the Chimpstatic script, used by this plugin, could be contributing to this issue, though not for certain.

    If you suspect that the Chimpstatic script is impacting your site’s performance and are open to modifying the plugin’s core PHP files, here’s an approach you could consider:

    1. Locate the File: Find the class-mailchimp-woocommerce-public.php file within the plugin’s directory.
    2. Edit the File: Open this file and search for the enqueue_scripts function.
    3. Modify the Script Loading: Look for the following line:
    wp_enqueue_script($this->plugin_name.'_connected_site', $site, array(), $this->version, true);

    and comment it out by adding // at the beginning of the line:

    //wp_enqueue_script($this->plugin_name.'_connected_site', $site, array(), $this->version, true);

    This action might alleviate some of the performance issues by stopping the script from loading. However, be mindful that this will also disable pop-up forms powered by Mailchimp, as this functionality depend on the Chimpstatic script.

    A Note of Caution: Direct modifications to plugin files can lead to complications with future updates, potentially reverting your changes. If you’re not comfortable with this risk, I recommend seeking alternatives that avoid editing the code directly.

    Additionally, if your WooCommerce store is particularly large or experiences high traffic, the issue might also be related to server resource limitations. In such cases, upgrading your hosting plan or server resources could provide a more stable solution to performance problems, without the need to alter plugin functionalities.

    Before making any changes, it’s always a good idea to back up your site and possibly consult with a 3rd party developer for personalized advice.

    Thread Starter Robert Bamm

    (@rbamm)

    Where is this file located? Can you give me the exact path?

    • This reply was modified 7 months, 3 weeks ago by Robert Bamm.
    Thread Starter Robert Bamm

    (@rbamm)

    I found the file now. At a first glance, it does seem this helped. Obviously it’s not a great fix since future updates of the plugin can revert the changes. But why is this script allowed to increase the loading time in the admin panel this much? This should be addressed by the plugin developer?

    The server the shop is hosted on is a fast one, with a lot of memory and several CPU cores, so it shouldn’t be because of that.

    Plugin Author ryanhungate

    (@ryanhungate)

    @rbamm what version of the plugin are you currently on?

    This script shouldn’t be slowing down your admin, I am wondering if this is related to the scheduled actions just possibly running more often when you’re in the admin and slowing down the entire site because of it.

    Have you considered using the WP CLI for the Action Scheduler?

    If this is the problem – it should increase performance in a lot of ways including the admin by handling these requests in the background on a more frequent basis where as they may be all happening at once when you’re in the admin just due to how the scheduler works by default.

    Please let us know if this helps or if you have any additional questions.

    Plugin Support khungate

    (@khungate)

    Hi there, we’re going to close out this ticket for now since it’s been a few weeks since we’ve been in touch.

    Please let us know if you still need any help and we’ll be glad to reopen and troubleshoot further. Please note, that the best way to reach us is over at the GitHub plugin page: https://github.com/mailchimp/mc-woocommerce/. From there, you can receive direct responses from the development team, log new issues, download the latest version, and track existing support tickets.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Mailchimp for woocommerce making backend very slow’ is closed to new replies.