Admin-ajax.php issues?

Posted in: Newspaper
Post count: 39

This is the message sent by our hosting provider (Flywheel), may we have comments on this?
`
`
It looks like the issues you’re seeing with the errors on this site are being caused by an extremely excessive number of POST requests being made to the server.
It looks like many of them are wp-cron jobs (some kind of scheduled task on the site running a little wild) and a big number of the rest are POST requests being made to admin-ajax.php by the theme itself:

POST /wp-admin/admin-ajax.php?td_theme_name=Newspaper&v=8.0

That’s the specific request that seems to be coming from the theme. Those and the rest of the POST requests are generating 502 or 504 errors by bogging down the server. Even one this powerful can only stand up to so much.
That’s because we’ve done quite a bit to get the site running as it should be on this end of things, including implementing a high level of aggressive caching. But POST requests will undermine those efforts and prevent caching altogether, forcing the server to work as hard as possible on each request. So in essence, what we can do to help performance is invalidated right now.
In order to get the site running optimally—on Flywheel or on any other host—you or a site developer will need to work on reducing those persistent, repetitive POST requests from the site. That’s site development, and it’s beyond the scope of our support, I’m afraid.
You can export the logs from the Advanced tab of the site’s Flywheel Dashboard if you’d like to have a look at what we’re seeing on our end.
Sorry we can’t be more directly helpful than that, but once that’s taken care of we’ll be happy to have another look and make any other suggestions or modifications we can from our side.
`
`

Post count: 22421

Hello,

Yes indeed if you use too many complex elements, the post requests will pile up. In order to reduce the number of post requests, pleas limit the number of different blocks with ajax filters and pagination.
The ‘ajax post views’ option can also increase the number of requests a lot.
Another way to reduce the load on the server is moving to the tagdiv composer and not using Visual composer anymore as it is known to load the server.
Here is another topic on the subject: https://forum.tagdiv.com/topic/admin-ajax-php-bandwidth-hog/

Thank you!

Post count: 39

Hi Bogdan
We are already using TagDiv (it’s indeed better than VC)

So, may we have your opinion of our site?

http://superluchas.com/

This is too complex?

Post count: 22421

Hi,

No, it does not seem to be the page complexity the case here.
I might check the plugins as they can cause this kind of issues as well. Try to disable all plugins except the page builder and clear all caching. Then test again and see if the load is the same.
Please also make sure you meet the requirements for the theme:
https://forum.tagdiv.com/requirements-for-newspaper/
https://forum.tagdiv.com/system-status-parameters-guide/

Test again after everything is in check .

Thanks.

Post count: 39

Thank you Bogan, but we are only using performance oriented plugins, like Cloudflare, Yoast and AMP

So, we just installed:

* tagDiv Speed Booster
* Remove Query Strings From Static Resource
* Imagify

And the load is sightly better
May I have your opinion about also use some extra plugins like:

* Use Google Libraries
* WP-Optimize
* Fast Velocity Minify

Thank you

Post count: 9544

I use WP-optimize every day.

Post count: 39

Thank you Cris!

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.