POSTS requests to the wp-admin/admin-ajax.php are exhausting our server capacity

Posted in: Newsmag
Post count: 6

We have a huge problem that comes about when we get a moderate amount of traffic to our site. Our servers are not the problem – our host has confirmed that they have sufficient resources. The issues is with your theme, and constant ajax.php requests that are exhausting our server’s Apache workers.

We are now unable to access the wp-admin of our site when we receive a moderate amount of traffic and we require this issue resolve immediately.

Our server engineers have determined that the POST request to wp-admin/admin-ajax.php call is calling this function – td_ajax_update_views which is defined in those files:

themes/Newsmag/includes/wp_booster/td_wp_booster_functions.php:add_action(‘wp_ajax_nopriv_td_ajax_update_views’, array(‘td_ajax’, ‘on_ajax_update_views’)); themes/Newsmag/includes/wp_booster/td_wp_booster_functions.php:add_action(‘wp_ajax_td_ajax_update_views’, array(‘td_ajax’, ‘on_ajax_update_views’)); themes/Newsmag/js/tagdiv_theme.min.js:tdAffix.compute_top(),tdDetect.runIsPhoneScreen(),tdCustomEvents._lazy_callback_resize_500())},500)}};tdEvents.init()})();var tdAjaxCount={};(function(){tdAjaxCount={tdGetViewsCountsAjax:function(a,b){var c=”td_ajax_get_views”;”post”===a&&(c=”td_ajax_update_views”);jQuery.ajax({type:”POST”,url:td_ajax_url,cache:!0,data:{action:c,td_post_ids:b},success:function(a,b,c){a=jQuery.parseJSON(a);a instanceof Object&&jQuery.each(a,function(a,b){jQuery(“.td-nr-views-“+a).html(b)})},error:function(a,b,c){}})}}})(); themes/Newsmag/js/tagdiv_theme.js: pageTypeAction = ‘td_ajax_update_views’;

The engineers say that themes/Newsmag/includes/wp_booster is the one causing the Apache workers to be exhausted, and to bring this to your attention as you should be aware of this issue and be able to further disable or edit the functionality without causing disruption to our website.

Post count: 9544

Disable the ajax view counter option from theme panel.

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