WordPress Cron Explained: How WP-Cron Works and How to Fix Missed Schedules in 2026

WordPress cron is the built-in system that publishes scheduled posts, checks for updates, and runs plugin tasks such as backups and cleanups. It is also the reason a post can sit at “Missed schedule” even though you set the time correctly: wordpress cron is not a real system scheduler and runs only when a request comes to the site, according to the Make WordPress Hosting handbook.

This guide explains how wordpress cron actually works, how to tell whether it is late or blocked, and how to replace the visit-based trigger with a reliable server cron job. Every command and constant below was checked against official WordPress documentation on 3 December 2026.

Last verified: 3 December 2026. Method: checked the Make WordPress Hosting handbook, the WordPress Plugin Handbook, and the WP-CLI command reference listed in the Sources section.

Featured image: AI-generated illustration.

In this guide

What wordpress cron is and what it runs

WordPress cron, usually written WP-Cron, is how WordPress handles time-based tasks without a server daemon. WordPress uses it to run scheduled tasks such as scheduled posts, update checks, and many plugin tasks, as the hosting handbook states.

In practice, that means one system is responsible for more of your site than most owners realise:

  • Scheduled posts — a post set for 09:00 is published by a cron event, not by a clock inside WordPress.
  • Update checks — WordPress periodically checks for core, plugin, and theme updates through scheduled events.
  • Plugin jobs — backups, imports, email digests, and cleanups register their own recurring wordpress cron events. If your backup plugin seems to run at odd times, this is usually why; see our WordPress backup guide for how those schedules should be set.
  • Cleanup events — expired transients and similar housekeeping also depend on scheduled events, which is one reason a bloated database and late cron often appear together. Our guide on how to optimize the WordPress database covers the cleanup side.

WordPress cron is a queue, not a clock

The key idea is simple: WordPress keeps a list of events that are due at certain times, but nothing watches that list continuously. The list is only checked when WordPress loads. A task scheduled for 14:00 therefore runs at 14:00 only if a request reaches WordPress at or after 14:00 and the run completes.

That design makes wordpress cron portable — it works on almost any host with no server access — but it also makes timing approximate. On a busy site the approximation is invisible. On a quiet site it is the whole problem.

Black alarm clock on a wooden surface symbolizing scheduled tasks running on time
Photo by Nenad Stojković, CC BY 2.0, via Wikimedia Commons

How wordpress cron works behind the scenes

On each request, WordPress checks for due events. If an event is due, WordPress sends a non-blocking loopback request to wp-cron.php, which runs the wordpress cron events, and a lock stops parallel runs. The hosting handbook describes that lock as the doing_cron transient, lasting for WP_CRON_LOCK_TIMEOUT seconds — 60 by default.

The wordpress cron loopback request

A loopback request is your site calling itself over HTTP. Your server must be able to reach its own domain for the run to start. If a firewall, DNS problem, Basic Auth prompt, or missing local route blocks that request, wordpress cron events do not run even though visitors can load the site normally.

Since WordPress 6.9, WordPress starts this loopback request on the shutdown action, after the page is sent. In older versions the request started before the page was sent and increased Time To First Byte. Either way, the trigger still depends on a real request reaching WordPress.

WordPress cron events, hooks, and schedules

Developers add tasks by creating a custom hook and scheduling it. The Plugin Handbook explains that scheduling a recurring task uses wp_schedule_event(), and that calling it repeatedly can schedule the same event multiple times, which is why code should first check wp_next_scheduled(). See the handbook chapter on scheduling WP-Cron events for the pattern.

For site owners, the practical point is that every plugin can add events to the same wordpress cron queue. One misbehaving plugin can fill the wordpress cron queue or hold up a run, and the symptom looks like “WordPress cron is broken” even when core is fine.

Diagram of a visitor request triggering scheduled WordPress tasks through a loopback request
AI-generated illustration.

Why scheduled tasks run late or miss

The hosting handbook lists the known limits of the design directly: if a site gets few visits, events run late; if the server blocks loopback requests, events do not run; and long events run inside a web request, so web server and PHP-FPM time limits apply. Each wordpress cron limit maps to a symptom you can recognise.

Symptom Most likely cause First check
Posts publish hours late on a quiet site No visit reached WordPress near the scheduled time Site Health scheduled-events status
Nothing scheduled ever runs Loopback request blocked, or DISABLE_WP_CRON set with no system cron job wp cron test and wp-config.php
Site Health says a scheduled event is late or has failed Events are overdue; the warning names the event The named hook in the event list
One plugin job never finishes Long event hitting PHP or web server time limits Error log and the plugin’s own settings
Problems started after a PHP or plugin change A changed runtime or a plugin conflict Test on staging before changing live

Low traffic and full-page caching

A cached page is served without loading WordPress, so it cannot trigger the check. A busy site behind a strong cache can therefore behave like a quiet site for scheduling purposes. This is normal, and it is exactly the case a server cron job fixes.

DISABLE_WP_CRON set with no replacement

The constant DISABLE_WP_CRON stops wordpress cron from starting on page requests. It does not stop the events themselves: scheduled events still run when a system scheduler calls them. The failure mode is setting the constant and never adding that scheduler. Without it, no scheduled events run at all.

Long or stuck wordpress cron events

Because events run inside a web request, a heavy job is bound by the same time and memory limits as a page load. If a backup or import dies midway, the run can fail and later events wait. When memory errors appear alongside cron problems, our guide on how to increase the WordPress memory limit explains the safe limits, and our guide on how to update PHP in WordPress covers testing a runtime change safely.

How to check whether wordpress cron is working

Start with the two checks WordPress gives you for free, then move to WP-CLI if you have shell access. Together they show whether wordpress cron is merely waiting for a visit or is genuinely blocked.

Check Site Health first

Go to Tools → Site Health. Site Health shows “A scheduled event is late” or “A scheduled event has failed” when events do not run on time, and it also has a loopback request test. The scheduled-events test exists because scheduled events are what look for updates and make sure scheduled posts are published on time, as the Site Health scheduled-events reference describes.

Note the event name in the warning. It usually points at the plugin or core job that is overdue, which tells you where to look next.

List the queue with WP-CLI

With WP-CLI, wp cron event list lists scheduled cron events with their hook, next run time in GMT, relative time, and recurrence, as documented in the wp cron event list reference. Two commands cover most diagnosis:

wp cron event list
wp cron test

wp cron test checks that wordpress cron can spawn through a loopback request. With DISABLE_WP_CRON set, it reports an error, which is expected — in that setup the system scheduler, not the loopback, is responsible for runs.

Run due events manually

To clear a backlog immediately, run the events that are due now:

wp cron event run --due-now

The wp cron event reference describes this as running all cron events due right now. If a stuck scheduled post publishes after this command, you have confirmed the queue works and the trigger is the problem.

The reliable fix: a server cron job

For most hosting platforms, a system scheduler gives wordpress cron more reliable results. The fix has two parts, and the order matters: create the server job first, confirm it works, and only then disable the visit-based trigger. Test the whole change on a copy first — our guide on how to create a WordPress staging site shows how.

Step 1: Add the system cron job

With WP-CLI available, run due events directly. Use the full paths to PHP and wp, because cron starts jobs with a short PATH:

*/5 * * * * cd /path/to/wordpress && /usr/bin/php /usr/local/bin/wp cron event run --due-now --quiet

Replace the paths with the PHP binary and WP-CLI path your site actually uses, and run the job as the same system user that owns the site files — not as root. An interval of 1 to 5 minutes is common; choose it from the needs of the site.

If WP-CLI is not available, request wp-cron.php over HTTP instead:

*/5 * * * * curl -f -sS -o /dev/null https://example.com/wp-cron.php?doing_wp_cron

Replace the example domain with your own. The Plugin Handbook’s chapter on hooking WP-Cron into the system task scheduler explains the same approach with wget and the five-field cron syntax: minute, hour, day of month, month, and day of week.

Step 2: Disable the visit-based trigger

Once the server job runs reliably, add this line to wp-config.php, above the “That’s all, stop editing!” line:

define( 'DISABLE_WP_CRON', true );

Only an administrator-level account should edit server files or change scheduling. If several people help run your site, keep that access narrow — our guide to WordPress user roles and permissions explains which roles can change settings.

Step 3: Verify the fix

  1. Schedule a test post a few minutes ahead and confirm it publishes without you visiting the site.
  2. Open Tools → Site Health and confirm the scheduled-events warning is gone.
  3. Run wp cron event list again and confirm no event stays overdue.
  4. On a staging copy, consider disabling the cron job there, because scheduled events on a copy can send emails or call external APIs.

If the test post still does not publish on time, work through the same checks in order. Confirm the server job runs as the site user, and confirm the full paths in the cron line.

Run wp cron event list again to see whether events are still overdue. If events clear when you run them manually but not on the server schedule, the wordpress cron queue is healthy and the server job is the part to fix.

If events stay overdue even after a manual run, look at the named event in Site Health and the error log instead. Changing one thing at a time makes the result clear, because each check separates a trigger problem from a problem inside a single event.

WordPress cron vs system cron compared

Aspect Default wordpress cron System cron + DISABLE_WP_CRON
Trigger A request that loads WordPress The server clock, every 1–5 minutes
Quiet sites Events run late Events run on schedule
Loopback needed Yes, for the default spawn No, with the WP-CLI method
Setup needed None Server access or a host cron tool
Risk if misconfigured Late posts and updates No events run if the job is missing

Keep the default wordpress cron setup if your site gets steady uncached traffic and nothing time-critical depends on the minute. Move to a system scheduler when scheduled posts, store jobs, or backups must run on time. On a multisite network, remember that each site has its own cron events, so one wp cron event run call covers one site only.

Common mistakes to avoid

Disabling wordpress cron before adding the replacement

This is the most damaging mistake because it fails silently: the site looks fine while every scheduled task stops. Add and verify the server job first, then set the constant.

Running the job as root

Run the cron job as the same system user that owns the site files. Running as root can create files with the wrong owner and cause permission problems later.

Using relative paths in the cron line

Cron starts jobs with a short PATH, so a bare wp or php may not be found. Use full paths to both binaries, as the hosting handbook instructs.

Forgetting staging copies

A staging copy with live cron settings can send real emails and call external APIs. Disable or repoint scheduled jobs on copies, and tell anyone who shares the server when you change the cron setup.

Frequently asked questions

What is wordpress cron?

WordPress cron is WordPress’s built-in scheduling system. It publishes scheduled posts, checks for updates, and runs plugin tasks, but it only runs when a request comes to the site rather than continuously like a system scheduler.

Why did my scheduled post miss its time?

Usually because no request reached WordPress near the scheduled time, the loopback request was blocked, or DISABLE_WP_CRON was set without a system cron job to replace it. Site Health and wp cron event list show which case applies.

Is it safe to set DISABLE_WP_CRON to true?

Yes, if a system cron job runs due events instead. The constant only stops WordPress from starting cron on page requests; the events still run when the system scheduler calls them. Without that job, no scheduled events run.

How often should the server cron job run?

An interval of 1 to 5 minutes is common. Choose based on the site: a store with time-sensitive jobs needs a shorter interval than a brochure site.

Does wordpress cron work on multisite?

Yes, but each site in a network has its own cron events. One wp cron event run call runs the events of one site only, so a network needs the job looped over its sites.

Conclusion

WordPress cron fails quietly and for understandable reasons: it waits for visits, depends on a loopback request, and runs inside web requests with their limits. Check Site Health first, list the queue with WP-CLI, and if timing matters, move the trigger to a server cron job before disabling the visit-based one. That single change turns missed schedules into a solved problem.

Last verified: 3 December 2026. Method: checked the Make WordPress Hosting handbook chapter on WP-Cron and system cron, the WordPress Plugin Handbook cron chapters, the WP-CLI cron command reference, and the Site Health scheduled-events reference listed below.

Sources

Leave a Comment