Slow down the Heartbeat API
While the admin is open, WordPress checks in with the server every 15 to 60 seconds. Once a minute is enough for post locks and login checks, and saves server work.
<?php
add_filter(
'heartbeat_settings',
static function ( $settings ) {
$settings['interval'] = 60; // Seconds, between 15 and 120.
return $settings;
}
);
In these packs
- Performance: Small changes that save the server and the browser some work.