WordPress Heartbeat API - Reduce Server Load Without Losing Autosave (2026)
The Heartbeat API keeps your browser and server in touch while you work in WordPress. It's useful, but with many open tabs or editors on modest hosting, those regular background requests can add real server load.
What the Heartbeat API Does
Introduced in WordPress 3.6, the Heartbeat API sends regular requests from your browser to the server through admin-ajax.php. It powers several features you probably rely on:
- Autosave while you're editing posts.
- Post locking, which warns you when someone else is editing the same post.
- Login expiry warnings, so you can log back in without losing work.
- Live updates in the dashboard and some plugins, such as notifications or order alerts.
By default, it runs more often in the post editor, around every 15 seconds, and less often on other admin screens, around once a minute.
When Heartbeat Becomes a Problem
Each heartbeat request runs PHP on your server and isn't cached. A single tab barely matters. Problems appear when requests multiply:
- Several editors working at once, each with multiple tabs open.
- Admin tabs left open all day.
- Plugins that use Heartbeat on the front end for visitors.
- Shared hosting with tight CPU or process limits, where hosts may send high usage warnings.
If your host's resource graphs show steady load from admin-ajax.php even when traffic is low, Heartbeat is a likely contributor.
Heartbeat Settings by Location
| Location | What It Does There | Our Suggestion |
|---|---|---|
| Post editor | Autosave, post locking, login checks | Reduce activity; don't disable |
| Dashboard and other admin screens | Live updates, notifications | Reduce activity |
| Front end | Used by some plugins for live features | Disable if no front-end feature needs it |
Disabling Heartbeat in the editor turns off autosave and post locking, which can cost you work or cause editors to overwrite each other. That's rarely worth the small saving.
How to Control Heartbeat With WP Rocket
WP Rocket includes Heartbeat control in its Backend section. With Control Heartbeat enabled, you can choose for each area, backend, post editor and front end, whether to reduce activity, disable it or leave it unlimited.
Reducing activity changes the interval from one request per minute to one every two minutes, according to WP Rocket's documentation. WP Rocket enables Reduce activity by default, so most sites are already covered.
Open WP Rocket's settings
Go to the Backend section and find Heartbeat.
Enable Control Heartbeat
Tick the checkbox.
Choose per location
Reduce activity for backend and post editor; disable on the front end if nothing needs it.
Save and test
Edit a post and confirm autosave still works; check any live features you rely on.
Other Ways to Control It
If you don't use WP Rocket, other options include:
- Dedicated plugins that adjust Heartbeat per location. WP Media's standalone Heartbeat Control plugin hasn't been updated for recent WordPress releases, so check compatibility before using any plugin.
- Other performance plugins with Heartbeat settings, such as Perfmatters and Super Page Cache.
- Code, using WordPress filters to change the interval or deregister the script where it isn't needed. This is best left to developers.
Front-End Heartbeat: When It's Needed
Most sites don't need Heartbeat on the front end. But some plugins use it for live features visitors see, such as:
- Live chat or support widgets built on WordPress.
- Real-time notifications for logged-in members.
- Some e-commerce or auction features that update prices or stock.
Before disabling front-end Heartbeat, check your key features still work. If something stops updating live, re-enable it on the front end and reduce its frequency instead.
How to Tell If Heartbeat Is Hurting You
- Host resource graphs show load from admin-ajax.php with few visitors.
- Browser Network panel in the admin shows repeated admin-ajax requests every 15 to 60 seconds.
- Query Monitor or server logs show frequent heartbeat-related requests.
- Usage warnings from shared hosts mention admin-ajax or excessive processes.
If these appear, reduce Heartbeat and also encourage editors to close admin tabs they're not using.
Heartbeat and Page Builders
Page builders and some editors rely on Heartbeat to keep your login session alive and save work in the background. If you disable Heartbeat in the backend or editor, you may see session timeouts or lose unsaved changes in the builder.
That's another reason to reduce rather than disable it in the admin. If you do restrict it and notice builder problems, set the backend back to reduced activity and test again.
Heartbeat on Busy Multi-Author Sites
On sites with many editors, Heartbeat's post locking is valuable: it prevents two people from overwriting each other's changes. Keep it running in the editor, at a reduced frequency, so locks still work.
Encourage editors to close admin tabs when they're done. Each open tab keeps sending heartbeat requests, even in the background.
| Site Type | Backend | Post Editor | Front End |
|---|---|---|---|
| Single-author blog | Reduce | Reduce | Disable |
| Multi-author publication | Reduce | Reduce (keep running) | Disable |
| WooCommerce store | Reduce | Reduce | Check plugins before disabling |
| Membership or community | Reduce | Reduce | Check live features before disabling |
Heartbeat and Front-End Speed
Heartbeat rarely affects your public page speed or Core Web Vitals, because it mostly runs in the admin and only for logged-in users. Controlling it is about server load and admin responsiveness, not PageSpeed scores. For visitor-facing speed, focus on caching, CSS, JavaScript and images. See how to speed up WordPress.
WordPress Heartbeat API FAQ
What is the WordPress Heartbeat API?
A built-in feature that sends regular background requests from your browser to the server for autosave, post locking, login checks and live updates.
Should I disable the Heartbeat API?
Disable it only where nothing needs it, usually the front end. In the editor and dashboard, reducing activity is safer.
Does WP Rocket control Heartbeat?
Yes. It reduces Heartbeat activity by default and lets you set reduce, disable or no limit separately for backend, editor and front end.
Will controlling Heartbeat improve my PageSpeed score?
Usually not. It reduces server load and helps admin responsiveness, mainly on modest hosting.