WordPress wp-cron.php: when it fires, when it doesn’t, and what to fix

person in black and white t-shirt using computer

Written by

in

The newsletter for newsletter operators

Daily field notes on deliverability, AI tools, hosting, and monetisation. No "top 10 plugins" filler — real tools, real numbers, real failures.

WordPress wp-cron.php: when it fires, when it doesn't, and what to fix
Photo by Fikret tozak on Unsplash

WordPress ships with a task scheduler called WP-Cron. It handles post publication, plugin updates, backup jobs, and scheduled emails. But it’s not a real cron daemon — it’s a PHP script that runs only when someone visits your site. That design breaks down fast for low-traffic sites, high-traffic sites under cache, and anything time-sensitive.

Here’s how wp-cron.php works under the hood, when it starts missing jobs, and how to replace it with a real cron entry.

How WP-Cron fires (and when it doesn’t)

Every time a page loads, WordPress checks whether any scheduled tasks are due. If the timestamp for a job has passed, wp-cron.php fires in the background via a non-blocking HTTP request to itself. The page render continues; the cron runs separately.

That model assumes regular traffic. If nobody visits for an hour, nothing triggers. If your site sits behind full-page cache (Cloudflare, Varnish, or a CDN), page loads skip PHP entirely — no cron check happens. Scheduled posts sit in limbo. Backup plugins wait. Automation workflows stall.

High-traffic sites hit a different problem: on every uncached page load, WordPress spawns a wp-cron.php request. Under load, that creates dozens of overlapping cron processes, all querying the database to see what’s due. The wp_options table gets hammered, and jobs run multiple times or time out mid-execution.

The WordPress Plugin Handbook (checked November 2026) acknowledges this: “WP-Cron does not run continuously… it runs on page load.” If your site has no visitors or is fully cached, tasks won’t execute on time.

Symptoms of a broken WP-Cron

Scheduled posts don’t publish at the set time. They appear hours late or stay in “Scheduled” status until you visit the dashboard. Plugin updates that should run overnight don’t trigger. Backup jobs marked for 3 a.m. never complete. Email automations that depend on wp_schedule_event fire sporadically or not at all.

You can test whether WP-Cron is running by installing the free WP Crontrol plugin. It lists all scheduled events and their next run time. If you see jobs with timestamps in the past, they’re stuck.

Cache is usually the culprit. If every request hits Cloudflare or your host’s edge cache, WordPress never sees the traffic. WP-Cron never checks. The site looks fast to visitors but automation dies.

Disabling WP-Cron and using server cron instead

The fix is to disable WP-Cron’s automatic trigger and call wp-cron.php directly from your server’s cron daemon on a fixed schedule — every five or ten minutes is typical.

First, add this line to wp-config.php (above the “stop editing” comment):

define('DISABLE_WP_CRON', true);

That stops WordPress from spawning wp-cron.php on page loads. Tasks won’t run until you set up the replacement.

Next, add a cron job on your server. If you’re on shared hosting, use cPanel’s or Plesk’s cron interface. For a VPS, edit the crontab with crontab -e. The command depends on your environment:

  • Using WP-CLI:
    */10 * * * * cd /path/to/wordpress && wp cron event run --due-now
  • Using curl:
    */10 * * * * curl -s https://yourdomain.com/wp-cron.php?doing_wp_cron > /dev/null 2>&1
  • Using wget:
    */10 * * * * wget -q -O - https://yourdomain.com/wp-cron.php?doing_wp_cron > /dev/null 2>&1

The */10 means every ten minutes. Adjust based on how time-sensitive your jobs are. If you schedule posts to the minute, use */5 or */1. If you only run nightly backups, 0 * * * * (hourly) is fine.

Managed hosts like BigScoots and many WordPress-focused providers let you toggle WP-Cron replacement in their dashboard. Some enable it by default and add the cron entry for you. Check your host’s documentation before editing config files manually.

One non-obvious benefit: predictable server load

Switching to server cron doesn’t just fix missed tasks — it also smooths resource usage. With default WP-Cron, jobs fire unpredictably whenever traffic arrives. A surge of visitors can trigger a dozen cron runs at once. Database queries stack up. PHP workers get consumed.

A server cron runs on a fixed schedule, independent of traffic. You control when the load hits. If backups or bulk-email sends are heavy, schedule them for 3 a.m. when traffic is low. If you run time-sensitive automations, run cron every minute but limit which jobs are allowed to execute during peak hours using plugin settings or custom code.

WP-Cron’s design made sense in 2005 when most WordPress sites were low-traffic blogs on shared hosts without shell access. In 2026, almost every serious operator has access to server cron — through cPanel, Plesk, or SSH — and runs cache in front of WordPress. Disabling WP-Cron is table stakes.

Want more infrastructure walkthroughs like this? Reply and tell us which hosting or WordPress topics you’re debugging right now — we’ll cover it in an upcoming issue.

The newsletter for newsletter operators

Daily field notes on deliverability, AI tools, hosting, and monetisation. No "top 10 plugins" filler — real tools, real numbers, real failures.

Other newsletters you might like

Scottish Rugby Fans

The best Scottish rugby updates, straight to your inbox — Six Nations, the Nations Championship, Glasgow and Edinburgh. Only when there's something worth reading.

Subscribe

The Ultimate Ireland Travel Guide

A daily travel newsletter and blog for Ireland — landmarks, hidden gems, the Wild Atlantic Way, food and pubs, trad music, castles and practical trip-planning tips for the Emerald Isle.

Subscribe

Love Germany

Love Germany — in your inbox Castles, hidden gems and the best places to visit in Germany. One short email, every day.

Subscribe

Love London

A newsletter for Londoners who want to rediscover their own city. Travellers planning their first or fifth visit. Anglophiles who fell in love with London through literature, film, or a rainy afternoon on the South Bank.

Subscribe

Newsletters via the One Two Three Send network.  ·  Want your newsletter featured here? Click here