LiteSpeed

Reduce admin-ajax load with LiteSpeed Cache Heartbeat control

Use the Heartbeat settings in the LiteSpeed Cache plugin to slow or disable the WordPress Heartbeat API on the front end, back end and editor, and cut admin-ajax.php load.

IntermediateWordPress on LiteSpeed2 min read

WordPress uses the Heartbeat API to send small requests to admin-ajax.php every 15 to 60 seconds while pages are open: for autosave, post locking and dashboard notifications. Each request runs PHP and counts toward your CloudLinux limits. With several admin tabs open, it adds up. LiteSpeed Cache can slow Heartbeat down.

Before you start

  • LiteSpeed Cache installed (see configuring LiteSpeed Cache).
  • Check whether admin-ajax.php shows up often in Resource Usage snapshots or X-Ray traces (see X-Ray).

Where the settings are

Go to LiteSpeed Cache → Toolbox → Heartbeat. You get separate controls for three contexts:

ContextSuggestedWhy
Frontend HeartbeatDisable (TTL 0) unless a plugin needs itVisitors rarely need Heartbeat
Backend Heartbeat60–120 secondsDashboard notices still work, just less often
Editor HeartbeatKeep on, 30–60 secondsAutosave and post locking protect your work

Apply the settings

  1. Turn on Frontend Heartbeat Control and set the TTL to 0 to disable.
  2. Turn on Backend Heartbeat Control and set 60 or 120.
  3. Turn on Editor Heartbeat Control and set 60.
  4. Save.

Warning: Do not disable Heartbeat in the editor if several people edit content. Post locking, which stops two people overwriting each other, depends on it.

Check the effect

  • Leave a dashboard tab open and watch the Network tab in DevTools: admin-ajax.php requests should appear less often.
  • Over a few days, Resource Usage should show fewer entry process spikes while you work in wp-admin.

Other admin-ajax sources

Heartbeat is only one source. Live chat widgets, statistics plugins and page builders can poll admin-ajax.php too. If load stays high, find the plugin responsible and reconfigure or replace it (see 508 errors).

Troubleshooting

A plugin stopped updating live

Some plugins use Heartbeat on the front end, such as live notifications or carts. Re-enable Frontend Heartbeat with a longer interval.

"Your session has expired" in the editor

The editor interval is too long or disabled. Use 60 seconds or less.

Frequently asked questions

Is Heartbeat control safe for WooCommerce?

Yes, with the editor left on. Test cart and checkout if you disable front-end Heartbeat; most shops do not need it.

Do I need a separate Heartbeat plugin?

No. LiteSpeed Cache includes the same controls; avoid running two plugins for this.

How often does Heartbeat run by default?

Usually every 15 seconds in the editor and every 60 seconds elsewhere, which is why open tabs add up.

Does closing browser tabs help?

Yes. Every open wp-admin tab sends its own Heartbeat requests. Close tabs you are not using.

Can a security plugin also send admin-ajax requests?

Yes. Some security and statistics plugins poll admin-ajax.php or the REST API. Check their settings for live features you do not need.

Will this improve PageSpeed scores?

Front-end scores barely change, but server load drops, which helps under traffic and keeps you within CloudLinux limits.

Was this guide helpful?

Still stuck?

Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.