Using the Heartbeat Control Plugin

Heartbeat Control header

If you are not familiar with the WordPress Heartbeat API, then you should learn how it affects your WordPress site. Basically, this feature establishes real-time communication between the server where your site is hosted and the browser that is connecting to your site when you’re logged into the Administrator Dashboard. The admin-ajax.php file sends an AJAX request every 15 seconds when you’re in the post editor or every 60 seconds if you’re just on the dashboard. How does this affect your site? If your admin is open for a long time, then the AJAX requests can build up to the point of affecting your server CPU usage. This in turn may lead to performance issues, especially if you have multiple admins running editing or other management tasks on your WordPress site.

The Heartbeat Control plugin by WP Rocket allows you to control the WordPress Heartbeat API. You can add rules for the dashboard, frontend editor, post editor, or even stop its activity completely. This article will show you how to download and use the plugin.

Looking a for a new home for your WordPress site? Look no further than InMotion’s WordPress Hosting solutions for secure, optimized servers configured for your budget needs.

How to Install the Heartbeat Control Plugin

Installing WordPress plugins is an easy task, especially when working through the plugins page in the Administrator Dashboard. These instructions use installation options in the Add Plugins page. You can also download the zip file and then install it from that file if necessary.

  1. Log in to the WordPress Administrator as an administrator.
  2. Click on Plugins.
  3. Click on Add New.
  4. In the top right corner of the Add Plugins page, click on the search field next to where you see the Keyword label. If you don’t see “Keyword” click on the drop-down arrow and select it.
  5. In the search field, type, Heartbeat Control.
  6. You should see Heartbeat Control by WP Rocket as one of your results. Click on the Install Now button.
  7. When the installation completes you will need to click on the Activate button.

That completes the install! The next section walks you through the different settings.

How to Use the Heartbeat Control Plugin

Once the plugin is installed you will find the plugin settings under the Settings menu for your WordPress site labeled Heartbeat Control. All of the configuration options for the plugin are made from this page. Follow the instructions below to learn about the settings and how they can be changed.

Heartbeat Control settings page
  1. To get to the settings, make sure you’re logged into the WordPress Admin. Click on Settings, then Heartbeat Control.
  2. You will immediately see the General settings page for the plugin as per the screenshot above. There are three main settings: WordPress Dashboard, Frontend, and Post editor. By default, all of the settings are set to allow the heartbeat. If you want to disable it, then click on Disable Heartbeat. Note: If you disable the heartbeat, make sure you tell your users to backup/save their changes at regular intervals when working in the dashboard, Frontend editor, or post editor.
  3. To modify a heartbeat to a specific frequency, click on Modify Heartbeat. You will see a slider bar labeled Override Heartbeat frequency that defaults to 15. Slide the bar to your preferred frequency. Remember that these settings are in seconds. For example, if the bar is at 15, then there is an ajax request every 15 seconds.
  4. Once you have completed making changes to the settings for the Heartbeat Control plugin, make sure to click on the SAVE button at the bottom of the page.

The Heartbeat Control plugin is a tool to help prevent a large amount of ajax requests from affecting the performance of your WordPress hosting server. If you’re the only person working on your WordPress site, then you may not need to use the plugin. However, if you’re seeing performance issues and you have several people who are always in the dashboard, editing the frontend, or working on posts, then you may benefit from using this plugin.

Congratulations! you should now be familiar with the Heartbeat Control plugin.

Become a master of WordPress plugins! Protect, optimize, secure, and expand the functionality of your website easily with the help of WordPress plugins! 

Arnel Custodio Content Writer I

As a writer for InMotion Hosting, Arnel has always aimed to share helpful information and provide knowledge that will help solve problems and aid in achieving goals. He's also been active with WordPress local community groups and events since 2004.

More Articles by Arnel

Thoughts on “Using the Heartbeat Control Plugin

  • Not helpful. What EXACTLY do you mean by “Dashboard” or “Frontend” or “Post Editor”. I can’t make a decision if I don’t know exactly what processes are being affected by my limited or disabling them. For example: if I disable Dashboard hearbeat does that mean I won’t have a dashboard anymore?

    • Hello maxcollector,

      Thank you for your questions, I apologize if the instructions are unclear. To clarify, the dashboard is the control panel of your website and is where you make the majority of the changes to your site. The frontend is the public-facing part of your site, what visitors see when they navigate to your website. The post editor is the word processing interface that allows you to edit the posts being created for your website. Also, if you disable Dashboard Heartbeat, the dashboard will still be accessible as that is part of the website itself and not part of the Heartbeat Control plugin.

      Best Regards,
      Alyssa K.

Was this article helpful? Let us know!