A post scheduled for 8 in the morning that appears at midday. An automatic backup that has not run for three days. A WooCommerce confirmation email that arrives an hour after the order. These symptoms often have the same origin: the way WordPress decides when to run its tasks.

How WP-Cron works, in practice
WordPress needs to run tasks at regular intervals: publishing a scheduled post, checking for updates, clearing temporary data, starting a backup run by a plugin, sending a reminder. To do that, it keeps a list of scheduled events, each with a due date and possibly a recurrence (hourly, twice daily, once a day, or an interval defined by a plugin).
On a classic server, that kind of task is handed to the system scheduler, cron, which wakes up at a fixed time. WordPress cannot count on such access existing at every host. So it uses a substitute mechanism: on every page load, it checks whether an event has fallen due. If one has, it fires a background request to wp-cron.php, which runs the tasks that are due.
- A visit arrivesA visitor, a robot or you yourself load a page.
- WordPress checks the listHas an event fallen due?
- A call to wp-cron.phpA background request is fired, protected by a lock.
- The due tasks runPublishing, clean-up, backup, the WooCommerce queue…
Without the first step, nothing happens: a task due at 3 in the morning waits for the next visit after that.
The mechanism is ingenious and works on almost any hosting. But it has one direct consequence: a task's timing depends on traffic. WordPress does not guarantee that a task runs at the time planned, only that it will run on a visit after that time.
Low traffic, high traffic: two different problems
What WP-Cron causes, according to traffic
| Situation | What happens | Typical symptom | The right answer |
|---|---|---|---|
| A little-visited site | Tasks wait for the next visit, sometimes for hours | A missed scheduled publication, a nightly backup that never ran | A server cron at a fixed interval |
| A moderately visited site | Visits are frequent enough for the delay to stay short | Rarely visible | Keep WP-Cron, and monitor it |
| A heavily visited site | The check happens very often; long tasks run during the peaks | Occasional slowdowns, overlapping tasks | A server cron, with heavy tasks outside the peaks |
| A site behind a full page cache | Pages served from the cache do not run WordPress | Tasks late despite decent traffic | A server cron |
The last case often comes as a surprise. An effective page cache serves visitors without starting WordPress, which is exactly its purpose. But WP-Cron then no longer sees those visits. The more effective your cache, the less WP-Cron is triggered.
On a heavily visited site the problem is the reverse: the check is triggered constantly, and a heavy task (an import, generating a feed, synchronising with an external service) can start at the height of the rush. The WordPress documentation notes it itself: leaving the visit-based trigger on as well as an external scheduler contributes to needless resource use. It is one of the points checked in the guide on WordPress server response time too high.
Tasks that fail or run late
The symptoms of a failing WP-Cron are scattered, which is why the link between them is rarely made.
A post marked “missed schedule”
The post stays in the scheduled state after its time. WordPress shows the “Missed schedule” label in the posts list.
Missing or irregular archives
A backup plugin scheduled by WP-Cron only runs if somebody visits the site at the right moment. Backups taken by the host, on the other hand, do not depend on WP-Cron.
Late reminders and notifications
Queued email (reminders, grouped notifications, newsletters) waits for the next trigger. That is not the same failure as an email never sent at all.
Stock, feeds or imports out of step
A catalogue import or a synchronisation with an ERP that builds up a backlog produces wrong stock levels or prices on the shop.
Other causes stop WP-Cron working even with traffic: DISABLE_WP_CRON turned on with no server cron created (often after a migration), a password protection or a firewall blocking the request the server sends itself to wp-cron.php, a site left in maintenance mode, or a task that crashes on every run and blocks the ones behind it. If order emails do not arrive at all, the problem is more often the sending itself: the guide on WooCommerce order emails not received deals with that case.
To find out where you stand, open Tools > Site Health : WordPress reports it itself when a scheduled event has been missed or is late. For a detailed view, the WP Crontrol plugin lists every event, its due time and its recurrence, and WP-CLI offers wp cron event list.
WooCommerce, queues and Action Scheduler
WooCommerce, and the many plugins that build on it, do not use WP-Cron directly for their bulk processing. They go through Action Scheduler, a queue that records every action in dedicated tables: sending webhooks, deferred emails, subscription renewals, clearing sessions, marketplace synchronisations, analytics calculations.
By default, Action Scheduler processes actions in batches of 25, for at most 30 seconds per request, one batch at a time. Its main trigger is a WP-Cron event that runs at most once a minute; it supplements that rhythm with asynchronous requests to carry on emptying the queue. In other words, if WP-Cron is not triggered, the WooCommerce queue does not move either.
You can look at it under WooCommerce > Status > Scheduled Actions. Three tabs are worth watching: Pending (should empty regularly), Failed (every failure deserves reading) and Complete (hundreds of thousands of rows piling up weigh the database down, a point covered in the guide on WooCommerce slow). A pending queue that grows day after day is a sign of insufficient triggering, or of an action failing in a loop. Orders whose status does not update can follow from it, as the guide on WooCommerce orders not recorded.
For high-volume shops, the Action Scheduler documentation recommends processing the queue with WP-CLI (wp action-scheduler run), which avoids the limits of web requests. That is a setting to tailor, not a reflex to apply to every shop.
Moving to a real server cron
The principle is simple: instead of waiting for a visit, you ask the server's scheduler to call WordPress at a fixed interval. Then you turn off the visit-based trigger, which has become pointless.
- 01
Create the server's scheduled task
In the hosting panel (cPanel's “Cron jobs” section, for instance) or in the crontab, add a line that calls WordPress. Two common methods: an HTTP request to
https://your-site.com/wp-cron.php?doing_wp_cron, or, if WP-CLI is available, the commandwp cron event run --due-nowrun from the site's folder. WP-CLI avoids going through the web server and does not depend on HTTP protections. - 02
Choose the interval
The expression
*/15 * * * *runs the task every 15 minutes,*/5 * * * *every 5 minutes. The WordPress documentation gives these formats as examples but recommends no particular frequency: it depends on your tasks, as the tool below shows. - 03
Check that the task works
Before turning anything off, let it run for a few cycles and check that the due events really are being run (WP Crontrol, WP-CLI or the cron task's own log).
- 04
Turn off the visit-based trigger
Add
define( 'DISABLE_WP_CRON', true );inwp-config.php, above the line that marks the end of the settings. The tasks now depend on the server cron alone.
DISABLE_WP_CRON does not disable the tasks
It only disables triggering on visits. With no server cron, nothing runs at all: it is the commonest mistake after a migration or a site copy.
The lock avoids duplicates
WordPress takes a lock while it runs (60 seconds by default) so that a second trigger does not start the same tasks again. A very long task can nonetheless exceed that window: hence the value of measuring how long it takes.
If your hosting gives no access to cron jobs, external services can call wp-cron.php at regular intervals. They add one more dependency to watch: that is a fallback, not the ideal answer. On managed hosting, the server task is configured and monitored by the team that runs the site.
What frequency? Start from the delay you can accept
The right question is not “which frequency is best”, but “how long can a task wait without consequence?”. A scheduled post published 10 minutes late troubles nobody. An order confirmation email that arrives an hour later generates worried messages to customer service. A stock synchronisation that falls behind during the sales means selling products that are out of stock.
A very high frequency is not free either: every trigger loads WordPress. If a task takes longer than the interval chosen, the runs pile up instead of going faster. Every minute is only justified for specific, measured needs, and with short tasks.
Which cron frequency for my site?
Six questions to tell whether to keep WP-Cron or move to a server cron, and at what rhythm. The recommendation is indicative: confirm it by measuring how long your tasks really take.
Is your WordPress site building up late tasks?
Have my scheduled tasks set upTesting, logging, monitoring
A scheduled task is tested like the rest of the site: by provoking the case, watching the result, then monitoring over time.
How to test
While you are setting it up, redirect the command's output to a file rather than to /dev/null : a PHP error in a scheduled task appears nowhere else. Once the configuration is stable, go back to a silent output so that a file does not grow indefinitely, and keep the usual PHP error log for anomalies.
A task's errors are often tied to its code: a plugin incompatible with the PHP version will make its scheduled task fail before it even produces a visible error. After a change of PHP version, check the scheduled tasks specifically.
The mistakes to avoid
Disabling WP-Cron without creating a server task
No task runs any more: publishing, plugin backups, clean-ups and WooCommerce actions all stop, with no message.
Leaving both triggers on
A server cron and WP-Cron in parallel: the tasks still run during visits, and the expected benefit disappears.
Running everything every minute “to be sure”
An excessive frequency multiplies the loads of WordPress without speeding up the long tasks.
Deleting events without knowing what they do
An unfamiliar event often belongs to an active plugin. Identify its source before deleting it; an event created by a plugin you have uninstalled can, on the other hand, be removed.
Confusing a late queue with a failing task
A growing queue points to insufficient triggering; “Failed” actions point to an error to fix in the code or the configuration.
Scheduling the heavy tasks in the middle of the day
Imports, feeds and bulk clean-ups are better run at night, when they are not competing with visitors.
Finally, remember that a slow scheduled task is first of all slow code. A server cron makes the runs regular, it does not make a plugin more efficient. If a task takes several minutes, the guide on plugins that slow WordPress down helps identify the plugin responsible. And to understand how these settings fit into your site's foundation, our infrastructure page sets out what is monitored on the server side.
Frequently asked questions about WP-Cron
Is WP-Cron a real cron?
No. WP-Cron checks for due tasks only when a page is loaded. It is a substitute scheduler, handy because it works everywhere, but its timing depends on traffic.
What exactly does DISABLE_WP_CRON do?
This constant stops WordPress triggering the tasks on visits. It deletes no task. It should only be turned on once a scheduled server task has been created that calls WordPress at a fixed interval.
Every 5 minutes or every 15: which should I choose?
Start from the delay you can accept. Fifteen minutes suits most brochure sites and blogs with scheduled publications or plugin backups. Five minutes makes sense for a shop or for order-related tasks. A higher frequency has to be justified by measurements.
Why are my tasks late when I have traffic?
A full page cache serves visitors without starting WordPress, so without triggering WP-Cron. Other possible causes: DISABLE_WP_CRON turned on with no server task, a request to wp-cron.php blocked by a protection, or a failing task that blocks the ones behind it.
Does a server cron make my site faster?
It stops visitors triggering tasks while they browse and makes the timing predictable. It does not make a slow task faster: if a task takes a long time, it is the code concerned that needs looking at.
Do the host's backups depend on WP-Cron?
No, backups taken at the hosting level are scheduled by the server. Only backups triggered by a WordPress plugin depend on WP-Cron.
A scheduled task should go out on time, not whenever visits happen to arrive.
For most sites, the answer fits in three lines: a server task, a constant in wp-config.php and a regular check. The difficulty lies above all in choosing a frequency in proportion.
Have my tasks checkedSummary with an AI
Choose your assistant: the request is prefilled where that is possible, and always copied, ready to paste if need be.

































🍪