Skip Navigation

[Resolved] High usage on admin-ajax

This support ticket is created 6 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Beda 6 years, 2 months ago.

Author
Posts
#1117259

I am trying to:

I have problem high usage of CPU on the hosting with admin-ajax.php on the website encuentraturetiro.com

Every 5 sec admin-ajax load javascript on the home page and also on other pages.

I need to reduce the CPU usage because the hosting limits.

Link to a page where the issue can be seen:

hidden link

I expected to see:

Low CPU resources.

Instead, I got:

admin-ajax.php produce the cpu and execute every 5 sec.

#1117566

Every 5 sec admin-ajax load javascript on the home page and also on other pages.

You need to either remove the View that paginates there with AJAX intervals of 5 seconds or change that View's pagination, in case the required CPU (which should not be so expensive) is not enough.

Also important is to load images that have a predefined size in such Views, not images that have a Custom Size (because they get generated each time on the fly)

These would be the only methods to decrease the calls to the AJAX which is needed for this kind of pagination or/and filters.