Ajax requests / load issues

Posted in: Newspaper
Post count: 5

Hi There,

Firstly, I’m not sure if it’s just me, but the search functionality of this forum seems to be broken, It makes it difficult for me to research this issue.

We continue to have intermittent load and performance issues, we seem to have narrowed it down to multiple /wp-admin/admin-ajax.php

It appears one article page load will generate 21 requests to /wp-admin/admin-ajax.php.

We are seeing strange intermittent issues where I believe (according to our tech) we are being flooded with these requests, we get an abnormally high number of active nginx connections, the site eventually slows to a stop and crashes. Strangely it eventually (maybe after an hour) it corrects itself, it doesn’t seem to be associated with high load.

I’ve read a few similar threads of people experiencing ver similar issues

https://forum.tagdiv.com/topic/i-need-shim-working-again/
https://forum.tagdiv.com/topic/high-processor-usage-by-admin-ajax-and-index-php/

I’ve read a few different bits of advise with no particular resolution.

1. Potentially it’s an issue with Visual Composer and changing to TD Composer might fix the issue, this seems risky, so I’m hesitant to do this work unless there is a high level of confidence that is will fix the issue.

2. Reduce the reliance of ajax and pagination on blocks, I’m happy to do this, but the vast majority of my users access the article page directly and through mobile devices. For example yesterday we had 550K impressions on mobile and 7K impressions on desktop.

What specifically should I be looking for to reduce AJAX calls and pagination? I can’t see any specifically on the article pages.

At this point I’m willing to forgo almost any functionality that is not crucial to our business to ensure stability.

The site is http://www.shwemom.com

Cheers,
Mick

Post count: 22421

Hello,

This issue is caused due to many complex elements on your site. That causes a very high load in the serve. In this case you will simply need better hosting so all the complex elements can be supported by it. Visual composer is known to be slow and demanding and that is why people tend to find different page builder solutions. Our own page builder does not present a risk as you say as it’s developed by us not a third party. We are working hard on the page builder and it will become a very powerful tool.
Now for a solution to your ajax problem. The first one would be jot to use too many different blocks on your homepage. Using more different blocks will cause a higher load. You seem to use lots of different blocks on your homepage. Make the homepage simpler with no more than 4 blocks if your hosting cannot handle a larger number on high traffic spikes.
To reduce ajax calls, simply remove some of the pagination and ajax filters on your blocks. For mobile users, one solution could be the mobile theme plugin: https://forum.tagdiv.com/the-mobile-theme/
And last but not least, check your plugins as they slow down the site radically. You also have lots of js errors in your console most likely due to plugins or customization.

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.