WordPress scheduled posts missed? Fixing WP-Cron that doesn't run
Why WordPress scheduled posts, backups and emails don't fire on time, how WP-Cron actually works, and how to replace it with a real system cron job you can monitor.
· 6 min read · By the Spot Downtime team
A scheduled post shows “Missed schedule”. A backup plugin hasn't run for three days. Order emails go out hours late. These are all symptoms of the same thing: WP-Cron, WordPress's built-in task scheduler, did not run when it should have.
The reason is that WP-Cron is not a real cron. Once you understand how it works, the fixes are short and the usual causes are easy to spot.
How WP-Cron works
A real cron daemon wakes up on a clock. WP-Cron has no clock. WordPress stores a list of scheduled events in the database. On a page load, WordPress checks whether any event is due, and if so it fires a background HTTP request to /wp-cron.php on your own site to run them.
That design has two consequences:
- No visitors, no cron. A quiet site can go hours without a page load, so events run late. Events are late by up to the gap between visits.
- The loopback request must work. If your server can't make an HTTP request to itself, nothing runs, however many visitors you have.
Step 1: see what WP-Cron thinks is happening
If you have WP-CLI, ask WordPress directly:
wp cron event list
wp cron testwp cron event list shows every scheduled event and when it is next due. Events with a next-run time well in the past are stuck. wp cron test checks whether WordPress can spawn a cron request and reports the error if it can't.
You can also trigger the endpoint by hand and read the status code:
curl -sS -o /dev/null -w "%{http_code}\n" "https://example.com/wp-cron.php?doing_wp_cron"A 200 with an empty body is normal. A 401, 403, 404 or 5xx points at the cause.
Common causes
- DISABLE_WP_CRON is set and no system cron replaced it. Check
wp-config.phpfordefine('DISABLE_WP_CRON', true);. That line is correct only if something else callswp-cron.php. Hosts and performance guides add it, and the second half is forgotten. - The site is behind HTTP basic auth or an IP allowlist. A staging password or a firewall rule makes the loopback request return 401 or 403.
- A security plugin or WAF blocks wp-cron.php. Some hardening guides block the file. That also blocks the scheduler.
- The server can't resolve or reach its own domain. Common behind a load balancer, a CDN that only accepts external traffic, or a misconfigured
/etc/hosts. The loopback fails with a timeout or SSL error. - Page caching hides the visits. The trigger is a request that reaches PHP. If a full-page cache serves almost all traffic, WordPress rarely runs, so it rarely checks for due events.
- A task is crashing or hanging. A long-running event can hit the PHP time limit, leaving later events waiting. See the white screen of death if events fatal-error.
The proper fix: a real cron job
Stop relying on visitors. Turn off the page-load trigger and call WP-Cron from the system scheduler instead.
- In
wp-config.php, above the line that says “That's all, stop editing”, add:phpdefine( 'DISABLE_WP_CRON', true ); - Add a crontab entry for the user that owns the site. WP-CLI is the most reliable because it doesn't go through the web server at all:crontab
*/5 * * * * cd /var/www/example.com && /usr/local/bin/wp cron event run --due-now --quiet - Without WP-CLI, call the endpoint over HTTP instead:crontab
*/5 * * * * curl -fsS -m 60 "https://example.com/wp-cron.php?doing_wp_cron" > /dev/null
Every five minutes is a good default. If you schedule things that must run to the minute, such as a publish time, use * * * * *. Use the full path to wp (check with which wp), because cron has a short PATH. If the command works in your shell but not from cron, see cron jobs that work manually but fail in cron.
Managed hosting
When you can't disable it: ALTERNATE_WP_CRON
If loopback requests are impossible on your host, define('ALTERNATE_WP_CRON', true); makes WordPress run the tasks through a redirect on the visitor's own request instead of a background request. It works around the loopback problem but adds a redirect to some page loads, so treat it as a last resort.
Missed schedule on a single post
If only a scheduled post was missed and the rest of cron is healthy, check the timezone under Settings, General. A post scheduled for a time that WordPress reads as the past publishes on the next cron run, or is flagged missed. Also check that no plugin has removed the publish_future_post event.
Monitor it so you find out first
Once WP-Cron runs from a system cron, the next failure mode is silent: the crontab entry is deleted in a server rebuild, the WP-CLI path changes, or the server stops. Nothing alerts you; posts just stop publishing.
Add a ping to the end of the cron line so that a missing run raises an alert. In Spot Downtime, create a heartbeat monitor and call its URL when the job succeeds:
*/5 * * * * cd /var/www/example.com && /usr/local/bin/wp cron event run --due-now --quiet && curl -fsS -m 10 "$HEARTBEAT_URL" > /dev/nullSet the interval to match the schedule and add a grace period of a few minutes. If the ping doesn't arrive, you get an alert. Setup steps are in how to set up a heartbeat monitor and the heartbeat docs.
Cron job monitoringGet alerted when a scheduled job stops checking in.Also keep an uptime check on the site itself: see WordPress uptime monitoring and why cron jobs fail silently.
Get new guides by email
Practical posts on monitoring, outages, error fixes and on-call, when they're published. No spam.
Keep reading
- Cron jobs · Monitoring · AlertsHeartbeat monitors: how to choose the interval and grace periodSet the expected interval and grace period of a cron job heartbeat so a late run doesn't page you at 3am but a dead job is still caught the same morning.November 12, 2026 · 6 min read
- Cron jobs · MonitoringCron jobs overlapping: how to stop two runs collidingWhen a cron job takes longer than its interval, runs pile up and corrupt data or exhaust the server. How to prevent overlap with flock, lock files and timeouts, and spot it early.November 1, 2026 · 7 min read