• Resolved dozza

    (@dozza)


    Siteground hosting reports high CPU usage at this site. I’ve followed this up with them and they report as follows:

    In order for your CPU usage on the site stmildredschurch.org.uk to be decreased, the server’s cache should be working properly so more content can be served from cache and less PHP executions are made. In the case of the site stmildredschurch.org.uk the server cache is not working due to a custom cookie in the site’s headers:

    Milko-Nozhchev:~ milko.nozhchev$ curl -sIX GET https://stmildredschurch.org.uk/ | grep -i cookie
    set-cookie: mailchimp_landing_site=https%3A%2F%2Fstmildredschurch.org.uk%2F; expires=Wed, 22-May-2024 15:05:18 GMT; Max-Age=2419200; path=/; secure; SameSite=Strict
    x-proxy-cache-info: W NC:000000 UP:SKIP_CACHE_SET_COOKIE
    Milko-Nozhchev:~ milko.nozhchev$

    It seems that the issue is caused by the MailChimp plugin. There 2 plugins associated with MailChimp. It appears that the cookie is generated by the mailchimp-for-woocommerce:

    baseos | stmildredschurch.org.uk | [email protected]:~/www/stmildredschurch.org.uk/public_html$ wp plugin list | grep mailchimp
    gravityformsmailchimp active none 5.4.0
    mailchimp-for-woocommerce active none 4.0.1
    baseos | stmildredschurch.org.uk | [email protected]:~/www/stmildredschurch.org.uk/public_html$ cd wp-content/plugins
    baseos | stmildredschurch.org.uk | [email protected]:~/www/stmildredschurch.org.uk/public_html/wp-content/plugins$ grep -ril “mailchimp_landing_site” .
    ./mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-service.php
    baseos | stmildredschurch.org.uk | [email protected]:~/www/stmildredschurch.org.uk/public_html/wp-content/plugins$

    —————

    Thats all the info they provided. How might I go about troubleshooting this and rectifying the cookie/cache/CPU usage issue

    The page I need help with: [log in to see the link]

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

    (@khungate)

    Hello,

    If you’re experiencing high CPU usage due to a cookie set by the Mailchimp for WooCommerce plugin. You might consider disabling the cookie using our plugin’s settings. We provide detailed instructions on how to do this in our Wiki. You can find the guide to enable or disable the cookie filter here.

    This should help reduce the CPU load by allowing your server cache to operate more efficiently. If you have any more questions or need further assistance, feel free to ask!

    Thread Starter dozza

    (@dozza)

    Thanks. I take it we simply add the code to functions.php in child theme?

    Plugin Support khungate

    (@khungate)

    Hi @dozza, that is correct. We strongly encourage making a backup to your site and testing on a staging server before pushing to production. If you’re not comfortable making these changes you may want to engage a 3rd party developer that may be able to assist further.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘High CPU usage due to cookie set by Mailchimp for WooCommerce’ is closed to new replies.