Calls to wp-admin/admin-ajax.php

Posted in: Newsmag
Post count: 22

I am in danger of having a web site turned off by my hosting company (Inmotion hosting) for excessive resource usage caused by constant hits to wp-admin/admin-ajax.php . We have also entered code into the https file to restrict use of the Admin page page to only our IP address as follows:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} ^(.*)?wp-admin.*$
RewriteCond %{REMOTE_ADDR} !^99\.232\.52\.92$
RewriteRule ^(.*)$ – [R=403,L]
</IfModule>

The site at http://www.breedingnews.com is the only site of several WordPress sites that we own which is suffering from this, and is the only one using the Newsmagtheme. I have already installed the Heartbeat control plugin but this is having little if any effect.

We have the following plugins running:
Adrotate
Envato WordPress Toolkit
Gravity Forms
Gravity Forms PGP encryption
Heartbeat Control
s2Member Framework
tagDiv Social counter
W3 Total cache
Wordpress HTTPS
WP Bakery Visual composer

Any help or ideas really appreciated

Post count: 6600

Hi,

I see that constant request is made for the admin-ajax file: http://screencast.com/t/aB3cZWc3EE5 I believe this is made by the Heartbeat Control plugin which I suggest you disable and also disable the rest of them, leave just the theme’s Visual Composer and test again.

To reduce the number of request made to the admin ajax file you can also disable the ajax view counter feature if you’re using it as this is actually calling ajax file for each post view to update the counter: http://screencast.com/t/MC4wUfU8

You can also try to reduce the number of blocks/queries on your homepage. The admin ajax file is also called allot when customizing the theme and making change in the theme panel. Not sure how you could avoid that however if you still experience problems with this you could also consider changing hosts as access tot his file resources is requested by the WordPress and by the theme.

Thanks

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