Home›Blog›WP-Cron Is Failing Silently on Your WordPress Site: Switch to a Real Server Cron

WP-Cron Is Failing Silently on Your WordPress Site: Switch to a Real Server Cron

WP-Cron only runs when someone visits your site, so scheduled posts, subscription renewals and emails quietly get missed. Here is how I check if it is broken, turn it off, and set up a real server cron for WooCommerce stores.

01 December 20267 min read

A client messaged me on a Monday morning: "Our Saturday sale didn't start. The banner was scheduled, the coupon was scheduled, nothing happened."

I logged in and the post was still sitting there with a red label: Missed schedule. The coupon was fine, it just never got switched on. Nothing was broken in the code. There was no error in the logs. WordPress simply never ran the job.

The reason was WP-Cron. And if you run a store, there's a decent chance yours is doing the same thing right now and you haven't noticed.

WP-Cron Isn't Really a Cron

On a normal server, a cron job is a timer. Every five minutes, the server runs a command. Doesn't matter if anyone is on the website or not.

WP-Cron doesn't work like that. WordPress has no timer of its own. Instead, every time someone loads a page, WordPress checks: "Is anything due?" If yes, it fires off a request to wp-cron.php in the background and runs those tasks.

So the schedule is tied to traffic. That causes two opposite problems:

  • Low traffic: nobody visits at 2am, so the 2am job runs at 8:40am when the first person shows up. Or for a staging or brand-new site, maybe not at all for days.
  • High traffic: WordPress checks on almost every request, and on a busy store that's extra load you didn't need. If page caching is aggressive, a lot of visits never even reach PHP, so the check doesn't happen when you'd expect.

And when it fails, it fails quietly. No email, no notice in wp-admin, nothing. You find out when a customer asks why their renewal didn't go through.

What Actually Depends on It

More than most people think. On a typical WooCommerce store, WP-Cron (and Action Scheduler, which WooCommerce uses on top of it) handles things like:

  • Scheduled posts and scheduled sale prices
  • Cancelling unpaid orders after the hold stock time
  • Subscription renewals and payment retries
  • Follow-up and abandoned cart emails
  • Backups that a plugin is supposed to run every night
  • Product feed and stock syncs with Google, Meta, or a warehouse
  • Clearing expired transients and sessions
  • Plugin and core update checks

When I wrote about orders stuck in pending payment, a broken cron was one of the causes. It shows up in a lot of "random" store problems once you start looking.

How to Tell If Yours Is Broken

A few quick checks I do on every site I take over:

1. Look for "Missed schedule". Go to Posts and filter by Scheduled. Anything with a date in the past and still not published means cron didn't run on time.

2. Check Action Scheduler. Go to Tools > Scheduled Actions (or WooCommerce > Status > Scheduled Actions) and click the Past-due tab. If there are hundreds of pending actions from days ago, the queue isn't being processed.

3. Site Health. Tools > Site Health will sometimes flag "A scheduled event has failed" or "Scheduled events are late". Not always, but when it does, believe it.

4. Check if it's been turned off already. Open wp-config.php and search for DISABLE_WP_CRON. I've seen sites where someone disabled WP-Cron years ago, meant to add a server cron, and never did. So nothing has been running at all. That one is fun to find.

If you have WP-CLI, this gives you the full list with next run times:

wp cron event list
wp cron test

wp cron test tells you whether WordPress can actually reach wp-cron.php. If it says it can't, check for basic auth on the site, a firewall blocking loopback requests, or a security plugin blocking it.

The Fix: Turn Off WP-Cron, Add a Real One

Two steps. Do them in this order, or you'll have a gap where nothing runs.

Step 1: Set up the server cron first

Most hosts give you a Cron Jobs screen. In cPanel it's under Advanced > Cron Jobs. On Hostinger it's under Advanced > Cron Jobs in hPanel. Cloudways, RunCloud and SpinupWP all have their own version.

Set it to run every 5 minutes. For the command, I prefer WP-CLI if the host has it:

*/5 * * * * cd /home/USER/public_html && wp cron event run --due-now >/dev/null 2>&1

If WP-CLI isn't available, call the file with PHP directly:

*/5 * * * * cd /home/USER/public_html && php wp-cron.php >/dev/null 2>&1

Or, as a last option, hit it over HTTP:

*/5 * * * * wget -q -O - https://yourstore.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1

I avoid the HTTP version when I can. It goes through the web server, so it can get blocked by Cloudflare, a firewall, or a maintenance mode plugin. Running it with PHP or WP-CLI skips all that.

Change /home/USER/public_html to your real path. If you don't know it, your host's file manager usually shows it at the top.

Step 2: Disable the built-in WP-Cron

Open wp-config.php and add this line above the "That's all, stop editing!" comment:

define( 'DISABLE_WP_CRON', true );

This doesn't delete any scheduled tasks. It just stops WordPress from checking on every page load. Your server cron now does that job, every 5 minutes, whether anyone visits or not.

Every 5 Minutes or Every 1 Minute?

For most stores, 5 minutes is fine. A sale that starts at 9:03 instead of 9:00 isn't a big deal.

If the store has a lot going on in Action Scheduler (big subscription stores, marketplaces with lots of vendor emails, stores syncing stock every few minutes), I go to every minute. Some shared hosts don't allow anything under 5 or 15 minutes, so check before you promise the client anything.

What I don't do is run it every minute just because I can. If a single run takes longer than a minute, you start stacking runs on top of each other. Check how long it takes first.

Check It's Actually Working

Don't set it and walk away. That's how the site in my story ended up with nothing running for months.

  • Schedule a test post 10 minutes ahead and see if it publishes on time.
  • Go back to Scheduled Actions > Past-due after an hour. The list should be going down, not growing.
  • Run wp cron event list again and make sure next run times are moving forward.
  • If your host keeps a cron log or emails you on errors, check it once. A wrong path is the most common mistake, and the cron just fails silently again.

If the Past-due list is huge (I've seen 40,000+ actions), let the new cron work through it for a day before you panic. If it's still stuck, run wp action-scheduler run manually and watch for the action that errors out. Usually it's one broken plugin task holding up the queue.

A Few Things That Catch People Out

  • Staging sites. If you clone the store to staging and the server cron is copied too, staging can send real emails or charge real renewals. Turn off cron on staging, or disable outgoing email there.
  • Multisite. A single cron call only runs the main site. Each site in the network needs its own run, or a WP-CLI loop that goes through them all.
  • Host-level cron already set. Some managed hosts (Kinsta, WP Engine and a few others) already run a server cron for you. Check before adding a second one.
  • Changing hosts. The server cron lives on the server, not in WordPress. When you migrate, DISABLE_WP_CRON comes along in wp-config.php but the cron job doesn't. Add it to your migration checklist.

Final Thoughts

WP-Cron is fine for a small blog that gets a steady trickle of visitors. For a store, where renewals, emails, stock syncs and order cleanup all depend on things running on time, it's too unreliable. And the worst part is it never tells you when it stops.

The fix takes about ten minutes: add a server cron, disable WP-Cron in wp-config.php, then check it's really running.

The Saturday sale client? We set it up the same day. Next weekend's sale started at 9:00, on the dot. They didn't message me about it, which is exactly what I wanted.

If your store has missed schedules, a growing Past-due list, or emails that go out "whenever", it's one of the things I look at in my WooCommerce bug fixing and performance services. Send me your store link and I'll check how your cron is set up.

Tags
WordPressWP-CronServer CronWooCommerceAction SchedulerWP-CLIDevOps

Tell me what your site will not do for you.

Send the requirement in plain words. I will tell you what is possible, what is not worth building, and the cleanest way to get there. All before I write a line of code.

Currently available Taking new projects WordPress and WooCommerce builds, custom plugins, marketplace work, fixes and ongoing support.
Email hello@izeeshansalam.com Send the requirement
Fiverr 5.0 from 51 reviews Level 2 seller profile
WhatsApp +92 345 2649981 Quick questions and scoping