admin-ajax slowing site down considerably because of wpt_view_count

Posted in: Newspaper
Post count: 1

Every time my site gets more than 1,000 users at once, the site slows down to the point where it’s unusable. CPU load is over 85 percent. I’m using Cloudflare nginx server and caching, but I don’t have any caching plugin installed currently. The issue with the site is with the wpt_view_count function that keeps showing up in my source code, but I have view count turned off.

Here is the offending code:

<script type=”text/javascript”>
jQuery(document).ready(function($) {
$.post(‘http://www.**********.com/wp-admin/admin-ajax.php&#8217;, {action: ‘wpt_view_count’, id: ‘9738’});
});
</script> </div>

Please advise, as I’m losing the ability to post anything on the site when I get any amount of decent traffic.

Thank you.

Post count: 23312

Hello tavarish,

First of all, please check your system status and try to increase all the parameters from there (most likely PHP memory) for good performance in the theme. Also, please set all of them according to our documentation here -> https://forum.tagdiv.com/system-status-parameters-guide/ Very important for your website is our requirements regarding on your dedicated server. For more information about this, please consult here -> https://forum.tagdiv.com/requirements-for-newspaper/
This type of function wpt_view_count, does not come from our theme code and do not request the admin-ajax.php I suspect it coming from your untested plugins or also you have some embedded code added to your theme which causes this. To rule conflicting plugins, please try to disable all the active plugins, leave just Visual Composer to active, clear all your caches and install only the plugin that comes bundled with our theme.

Hope this helps!

Thanks for your understanding!

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