Too Many Admin-Ajax.php calls?
-
WordPress 5.2.1
WordFence 7.3.3
PHP 7.1Quick initial question – Is there a way to disable WordFence, or mitigate it’s actions, when logged in as admin, especially while editing/saving posts/page?
Here’s why:
I have been trying to solve an intermittent 503 error for a couple of weeks now. It’s been difficult to pin down as it rarely happens, and I’ve not identified a universal action/trigger for it. It appears that the event only happens when editing/saving a post/page. It may be important to note that I’m using Divi and I’ve only experienced the issue while saving a page via the Backend Builder (not the frontend/visual builder). It happens so inconsistently, however, I can’t be sure that’s the only trigger.
Here’s the key point. The PHP Error log looks like this each time the 503 occurs:
[Fri Jun 14 08:25:46.610993 2019] [:error] [pid 7373] Execute of /home/seren714/staging/6/index.php stopped because of load 31.90
[Fri Jun 14 08:25:46.610775 2019] [:error] [pid 7373] Execute of /home/seren714/staging/6/wp-admin/post.php stopped because of load 31.90
[Fri Jun 14 08:25:46.384251 2019] [:error] [pid 5410] Execute of /home/seren714/staging/6/index.php stopped because of load 31.90
[Fri Jun 14 08:25:46.384222 2019] [:error] [pid 6141] Execute of /home/seren714/staging/6/index.php stopped because of load 31.90My host (SiteGround) has consistently said that the load appears to be due to an overabundance of admin-ajax.php calls. Indeed the raw logs show a number of admin-ajax.php calls before and leading up to the 503 errors.
Here’s where WordFence comes in. When I run the Google toolbox/console and watch for what programs hit admin-ajax.php, WordFence is responsible for all of the calls except for one (Divi makes one). WordFence continues to make them as I open different Divi modules, save, etc. This seems like expected behavior as I’m guessing WordFence is verifying the saves are coming from the right IP, etc.
In the end, however, I can only continue to test this issue if I can identify/eliminate whatever is creating the admin-ajax.php calls that appear to cause the load issue. I’d rather not turn WordFence completely off. Obviously, I could try all of this on a staging site, etc. but again, the issue is so intermittent, I don’t know what I can specifically do to trigger it in short order.
If I can safely stop or slow the admin-ajax.php calls, I can at least either verify or rule out that as the true cause of the issue.
For reference, a number of things have already been done:
Heartbeat is turned off for post editor
memory and other limits have been increased as typically needed for Divi
along with many others.I’m hopeful someone has some helpful tips!
- The topic ‘Too Many Admin-Ajax.php calls?’ is closed to new replies.