WordPress – Completely disable Heartbeat Control

wordpress

If you are having speed issues with your WordPress website then you may find that this is because of the the heartbeat control that is within the WordPress software. Running speed checks on your website like PingDom may reveal that your admin-ajax.php is taking ages to load.

So, what do you do about it?



It really depends on your own situation – if you have multiple administrators on your site that you will not want to disable this feature but you can stop it checking every 15 seconds and change it to 60 seconds by using Heartbeat Control plugin.

But like most blogging websites you are the only person making any changes to your own website, then you may want to consider disabling the ajax completely. To do this, you need to make a change to your functions.php file – so, please be careful, one wrong move and you can completely disable your site so don’t come crying to us if you do screw it up!!

In your WordPress Administrator Console, browse your way to Themes > Editor then select the Theme Functions (functions.php) file. This will bring up the file edit and you should now add the following code straight after the <?php part at the top of the text:

Click the Update File button underneath the text box and this will completely disable the ajax function on your website.

NOTE: If you are currrently using Heartbeat Control or any other heartbeat plugin – disable it and delete it before making any of the above changes or your site will crash.

COMMENTS

We would love to hear your feedback on this guide and whether it has helped you or if you have any further suggestions or questions – just leave us a comment below.



1 Response

  1. Mike says:

    Can the heartbeat control plugin be used in any way to speed up the wordpress dashboard? IF so, what what you recommend for a rule?

Leave us a message...