Resource icon

What is WordPress heartbeat and how to manage admin-ajax.php on wordpress?

What is WordPress heartbeat and how to manage admin-ajax.php on wordpress?

You may come across few situations such like cPanel increases the account stability continuously. Have you ever noticed it seriously? This is because, the WordPress dashboard may be opened in multiple tabs and this brings the load in CPU. At last, it results in cPanel account increasement.
For 15 seconds once, you will get the request from server side to get notice WordPress dashboard is opened in numerous tabs.

The request be like:
00:10:30] POST /wp-admin/admin-ajax.php HTTP/1.0
[00:10:45] POST /wp-admin/admin-ajax.php HTTP/1.0
[00:11:00] POST /wp-admin/admin-ajax.php HTTP/1.0
Why admin-ajax.php is used?

Admin-ajax is also called WordPress heartbeat. If one user logins repeatedly it helps them to save the username and password. So, the administrator no need to login again and again. Ajax helps to execute the query a raised from server side for every 15 seconds.

So, for every ajax instances, the CPU load will be increased. We can’t leave it as it is to load frequently. To overcome this issue, please use plugin called “WordPress Heartbeat API”.

How to control load?

Step 1: Login with your credentials to WordPress dashboard. Choose the option plugin and then add new. Heartbeat control plugin is needed now to control the load in CPU. So, install it with proper attention.

Step 2: After installation kindly activate it without fail. It will get activation once if you click on activate button. Now, go to setting option and then choose heartbeat control settings.

Step 3: You will be listed with few options in heartbeat control menu. Click on modify and in the frequency sliding option choose the locations correctly.

Step 4: Don’t forget to save all the changes till now. If you want to disable the heartbeat work, then kindly select disable option listed in heartbeat behavior.

That too for all locations. Only so, it will get update easily.

Sometimes, disabling heartbeat function may affect other plugins in WordPress. So, before disabling it kindly get back the frequency in higher mode and then adjust the settings for all locations.

That’s it! Quite interesting for all users? This might be easy for all users. Before starting up the process take backup for your secondary option.
First release
Last update
0.00 star(s) 0 ratings