Blog

Slow WordPress Admin: Action Scheduler, autoload options, or Heartbeat, find the real cause

A slow WordPress admin almost always has a measurable cause: too many queries, an overflowing task queue, or options loaded on every page. This guide shows you how to find yours in a few minutes, and what needs to be fixed first.

Slow WordPress Admin: Action Scheduler, autoload options, or Heartbeat, find the real cause

Key points

  • Measure before fixing: the number of queries and the extension that launches them often point to the cause.
  • An overflowing Action Scheduler queue is fixed in the extension that fills it, not in nexya.
  • Autoload options are loaded on every page: Site Health alerts when they exceed about 800 KB.
  • Reducing the Heartbeat relieves the server when multiple admin tabs remain open.
  • A page cache speeds up the public site, not the admin.

Slow WordPress admin: why the server is often not to blame

A slow WordPress admin is one of the most frequent complaints on the WordPress.org forums. The messages sound alike: every click takes several seconds, the editor takes time to open, and the host replies that PHP and the database are fine.

The host is often right. A fast server can easily serve a slow page if it has to execute hundreds of queries on every load, reread a large block of options, or process a backlogged task queue. The problem then does not come from the machine. It comes from what it is being asked to do.

In recent topics, three causes keep coming up: the Action Scheduler queue, used by WooCommerce and other plugins, which runs for hours; autoload options that are too numerous or too heavy; and a Time to First Byte (TTFB) of several seconds even though the server seems healthy. Before fixing anything, you need to know which one applies to you.

Counting queries and finding the plugin that triggers them

The first useful metric is the number of database queries sent for an admin page. The nexya query monitor displays this on every page. It also shows duplicate queries—meaning the same question asked multiple times to the database—and the plugin that triggers them.

This last point is often the most revealing. An admin page that sends a few dozen queries is normal. If it sends several hundred, a good portion of them duplicates and almost all coming from the same plugin, you have a solid lead. Deactivate that plugin on a staging site and compare.

In the free version, the monitor gives the count, duplicates, and origin. nexya Pro adds the duration of each query. This makes it possible to distinguish one hundred fast queries from a single query that blocks the page for two seconds.

A fast server can serve a slow page if it has to respond to hundreds of unnecessary queries.

Action Scheduler: when the task queue runs for hours

Action Scheduler is a background task library used by WooCommerce and many plugins: sending emails, synchronizations, cleaning up orders. Its tasks are stored in separate tables, including wp_actionscheduler_actions and wp_actionscheduler_logs.

When a plugin schedules more tasks than it processes, or when a task fails repeatedly in a loop, these tables grow and each queue run takes longer. The admin then slows down because the queue is often triggered by page visits.

To check, open the list of scheduled actions in Tools, or in WooCommerce Status if the shop is installed. Look especially at pending actions with past due dates and failed actions: their count and the hook name indicate the responsible plugin. The nexya query monitor confirms this, as it points to the plugin sending the queries.

It must be stated clearly: nexya does not manage the Action Scheduler queue. It does not empty these tables or restart tasks. The fix must be made within the concerned extension: update, synchronization setting, or contacting its author. Completed actions are kept for one month by default, then deleted by Action Scheduler itself.

Autoload options: the weight loaded on each page

WordPress keeps its settings in the wp_options table. Those marked as autoload are loaded entirely on every page, on both the visitor and admin sides, whether they are used or not. A deleted extension often leaves its options behind, still loaded.

Since WordPress 6.6, Site Health reports when autoload options exceed approximately 800 KB. Beyond a few megabytes, the slowdown becomes noticeable on every click.

The nexya Maintenance module lightens the autoload. It displays what each visit loads without your knowledge. With nexya Pro, you can sort these options by size and delete those that are no longer needed. Before deleting anything, make a copy of the database using the Maintenance module export: an option that seems orphaned may still be used by an active extension.

  • First, identify the heaviest options, not the most numerous ones.
  • Check which extension the option name prefix belongs to.
  • Export the database before deleting anything.
Autoload options loaded on every visit, along with their size.
Autoload options loaded on every visit, along with their size.

Heartbeat: the admin calling itself

The Heartbeat is a call sent by the browser to the server at regular intervals as long as an admin tab is open. It is used to lock an article being edited and to save drafts. With multiple tabs open by multiple people, these calls add up and occupy the server.

The Maintenance module regulates the Heartbeat. Reducing it where it is not useful relieves the server without affecting auto-saving in the editor. It is a simple setting, but it matters most on sites where multiple writers work at the same time.

Five-second TTFB on the visitor side: that’s where a cache helps

A high TTFB is the time that elapses before the server returns the first byte. If public pages take several seconds to respond even though PHP and the database are fast, the same causes are usually at work: too many requests, heavy autoload, tasks launched during loading.

Fix them first. Then, a page cache makes a real difference for visitors. The nexya Pro cache keeps each page as a file and serves it to the next visitor before WordPress loads, then discards it as soon as its content changes.

However, a page cache does not make the admin faster. Admin pages and those viewed by a logged-in user are calculated every time. For the admin, only the fixes described above matter.

Find what is slowing down your admin in four steps

  1. 1

    Turn on the module from the hub

    In the nexya panel, turn on the module containing the query monitor. A disabled module executes nothing, so this one only affects the site while you need it.

    Turn on the module from the hub
  2. 2

    Open the slowest admin page and read the monitor

    Load the sluggish page, for example the order list or the editor. Note the number of queries, duplicates, and the extension launching the most. If it is an extension that uses Action Scheduler, check its failed or delayed actions in the scheduled actions list.

  3. 3

    Reduce the Heartbeat

    In the Maintenance module, adjust the Heartbeat so it pings the server less often where it is not needed. The effect is most visible when multiple people are working in the admin at the same time.

    Reduce the Heartbeat
  4. 4

    Export the database, then lighten it

    Make a copy of the database using the Maintenance module's export feature, then run the cleanup and lighten the autoload. With nexya Pro, sort options by size and delete those from extensions that are no longer installed.

    Export the database, then lighten it

What is free, and what requires nexya Pro

Each module is turned on from the hub, and a disabled module executes nothing on the site. Adding a diagnostic tool therefore does not weigh down an already slow site.

  • Free: the query monitor with the number of queries, duplicates, and the extension that launches them.
  • Free: the Maintenance module, which lightens the autoload, adjusts the Heartbeat, and cleans and exports the database.
  • nexya Pro: the duration of each query.
  • nexya Pro: sorting and deleting autoload options.
  • nexya Pro: page caching, and scheduled database cleaning.
  • Outside of the plugin: the Action Scheduler queue, which is fixed within the extension that populates it.

FAQ

Is nexya's query monitor free?

Yes. It shows the number of queries, duplicates, and the extension that launches them for free. nexya Pro adds the duration of each query.

Can nexya empty Action Scheduler tables?

No. nexya does not manage the Action Scheduler queue. The monitor helps spot the extension sending the requests, but the fix must be made within that extension.

Can I delete autoload options with the free version?

The free version of the Maintenance module lightens the autoload. Sorting options and removing those that are no longer needed requires nexya Pro. Export the database before deleting anything.

Will page caching speed up my admin?

No. The nexya Pro cache serves pages to visitors before WordPress loads. The admin and pages viewed by a logged-in user are calculated every time.

Does nexya work on a multisite network?

No. On a multisite network, the plugin remains deactivated and indicates so.

The modules in this post

nexya performance nexya maintenance nexya hub

Try nexya Pro free for 7 days

Every module, forms, newsletters and the page cache, on your site. No commitment.

See the plans Or discover the free version