Thanks Kriesi!
Hi,
There appears to be a serious issue with every page request making a call to the MailChimp API.
Effectively every site that has the Enfold theme is forming a DDoS attack against MailChimp.
This also impacts site performance as it adds ~0.2055
seconds to every page load.
To fix this change the following code in:
/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/mailchimp.php
From:
function popup_elements()
{
$api = new av_mailchimp_api( $this->api_key );
$owner = $api->api_owner();
if(empty( $this->api_key ) || !$owner)
To:
function popup_elements()
{
$api = null;
$owner = '';
if ( ! empty( $this->api_key ) ) {
$api = new av_mailchimp_api( $this->api_key );
$owner = $api->api_owner();
}
if(empty( $this->api_key ) || !$owner)
Still further even if you did have an API key defined – it shouldn’t be making that call as much as it is and this should be reviewed.
Cheers,
Dean.