Heartbeat control
Lengthens the WordPress heartbeat interval and can switch the heartbeat off for site visitors, cutting background requests to admin-ajax.php.
What it does
Slows down a background request loop
Heartbeat control is a Vectro performance feature that sets the interval of the WordPress heartbeat API and can switch it off on the front end, cutting the admin-ajax requests it sends in the background.
The heartbeat API is how WordPress powers post locking, autosave notifications and live dashboard updates. It works by sending a request to admin-ajax.php on a timer – every fifteen seconds while the post editor is open, and every sixty seconds elsewhere in the admin.
This feature lets you change that. You can switch the heartbeat off on the front end entirely, and set the interval to anything from 15 to 300 seconds. Vectro applies that interval wherever the heartbeat runs, and it never switches the heartbeat off inside wp-admin.
Be aware of the trade-off before setting a long interval. Post locking – the warning that another user is already editing a post – depends on the heartbeat, and a long interval makes that warning slower to appear. On a multi-author site it is worth keeping the interval modest.
Why it matters
It is a request every fifteen seconds, per open editor
Each heartbeat is a full PHP request: WordPress bootstraps, loads plugins, runs the AJAX handler and responds. One editor left open for an hour generates 240 of them. On shared hosting, where admin-ajax.php requests are often the first thing to hit a resource limit, that is a meaningful and entirely avoidable load.
The cost scales with how many people have the editor open. On a site with several authors working simultaneously, heartbeat traffic can be a substantial share of total server requests – all of it background polling rather than anyone actually loading a page.
How to use it
Reduce first, disable only if you are sure
Technical detail
What the heartbeat carries
The heartbeat posts to admin-ajax.php with the heartbeat action. WordPress and plugins hook that request to check whether a post is locked by another user, confirm the login session is still valid, and refresh dashboard widgets.
Vectro filters the heartbeat settings to change the interval, and unregisters the heartbeat script on front-end pages if you turn on Disable Heartbeat on Frontend. Plugins that rely on the heartbeat for their own live updates will be affected in proportion to how far you reduce it.
admin-ajax.php with the heartbeat action.Compatibility
Vectro detects these and steps aside
You can override any automatic deferral from the Compatibility panel in Vectro’s dashboard if you would rather Vectro handle it.
Questions
Frequently asked
What does the WordPress heartbeat API do?
The WordPress heartbeat API sends a request to admin-ajax.php on a timer to power post locking, autosave notifications and live dashboard updates. It fires every fifteen seconds while the post editor is open and every sixty seconds elsewhere in wp-admin.
Does Vectro heartbeat control work with WP Rocket?
No – if WP Rocket is active, Vectro detects it and disables its own heartbeat settings automatically. WP Rocket manages the heartbeat instead.
How do I reduce WordPress heartbeat requests in Vectro?
Go to Vectro > Performance in wp-admin, make sure Heartbeat Control is on, turn on Disable Heartbeat on Frontend and raise Heartbeat Interval from the default 60 seconds to 120. Keep the interval modest if more than one person edits posts.
Is Vectro heartbeat control free or Pro?
Yes, Vectro heartbeat control is free. It is included in the free Vectro plugin on WordPress.org with no account required.
Is it safe to disable the WordPress heartbeat completely?
Vectro only switches the heartbeat off on the front end, for site visitors, which is low risk. Inside wp-admin it lengthens the interval but never turns the heartbeat off, so post locking and autosave notices keep working, just less often.
Related features
Cut background server load
Vectro Pro adds a page load time monitor to track performance changes over time. See Pro plans
Download Vectro free on WordPress.org
27 features across Security, Performance and Maintenance. No account required, no expiry, unlimited sites.