[object Object]
WP Adminify

Control Heartbeat API

The WordPress Heartbeat API enables real-time communication between the browser and server, powering features like autosave, session management, and user notifications. While essential, it can also lead to higher CPU usage, especially on high-traffic sites or shared hosting plans. WP Adminify’s Control Heartbeat API feature allows you to manage and optimize this functionality to reduce server load and improve site performance. Here's how you can use this feature.

1. Access the Performance Section in WP Adminify

To begin, log in to your WordPress dashboard:

  • Navigate to WP Adminify > Performance > Control Heartbeat API.
Enable Heartbeat API in WordPress

2. Customize the Heartbeat API Settings

The Control Heartbeat API feature lets you manage the API across three key areas:

a. WordPress Dashboard

  • Default: Retain WordPress's default interval for the Heartbeat API.
  • Modify: Adjust the interval to reduce its frequency.
  • Disable: Completely turn off the Heartbeat API for the WordPress dashboard.

b. Post Editor

  • Default: Use the default interval for features like autosave and real-time collaboration.
  • Modify: Adjust the frequency to reduce server load.
  • Disable: Turn off the Heartbeat API entirely for the post editor.

c. Frontend

  • Default: Maintain the default interval for frontend interactions.
  • Modify: Reduce the API’s frequency to optimize performance.
  • Disable: Completely disable the Heartbeat API for public-facing pages.
Modify heartbeat interval

To adjust any of these settings just select the desired option (Default, Modify, or Disable) for each area.

3. Save Your Changes

Once you’ve customized the settings:

  • Scroll down and click the Save Changes button to apply your new configuration.

4. Verify the Heartbeat API Configuration

After saving your changes:

  • Test the WordPress dashboard, post editor, and frontend to ensure the Heartbeat API is functioning as per your settings.
  • For example, to check whether the heartbeat interval has been updated on the WordPress dashboard, right click on your dashboard and hit inspect. Then go to network and check the admin.ajax.php file. The interval should be updated to whatever you set it to be.
WordPress Heartbeat Control for Dashboard

By following these steps, you can optimize your WordPress site’s performance without sacrificing essential functionality.

Didn’t find what you were looking for? Get in touch!

Updated on January 4, 2025

Was this helpful to you?

Coupons
icon

Navigate on your Dashboard faster with WP Spotlight!

Try It Now