French flag Hosted and supported in France A human reply within 12 hours 06 65 13 24 36
← All articles Hosting & performance16 min read

WP-Cron: when should you move to a real server cron?

Missed scheduled publications, late backups, WooCommerce emails that go out hours afterwards: understanding WP-Cron, then deciding whether you need a server cron and at what rhythm.

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.

A laptop showing a task dashboard, beside a server rack
WP-Cron: a scheduler that waits for visits to wake up.

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.

  1. A visit arrivesA visitor, a robot or you yourself load a page.
  2. WordPress checks the listHas an event fallen due?
  3. A call to wp-cron.phpA background request is fired, protected by a lock.
  4. 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

THE SAME MECHANISM, TWO EFFECTS

What WP-Cron causes, according to traffic

SituationWhat happensTypical symptomThe right answer
A little-visited siteTasks wait for the next visit, sometimes for hoursA missed scheduled publication, a nightly backup that never ranA server cron at a fixed interval
A moderately visited siteVisits are frequent enough for the delay to stay shortRarely visibleKeep WP-Cron, and monitor it
A heavily visited siteThe check happens very often; long tasks run during the peaksOccasional slowdowns, overlapping tasksA server cron, with heavy tasks outside the peaks
A site behind a full page cachePages served from the cache do not run WordPressTasks late despite decent trafficA 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.

Publishing

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.

Backups

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.

Email

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.

Synchronisation

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.

  1. 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 command wp cron event run --due-now run from the site's folder. WP-CLI avoids going through the web server and does not depend on HTTP protections.

  2. 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.

  3. 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).

  4. 04

    Turn off the visit-based trigger

    Add define( 'DISABLE_WP_CRON', true ); in wp-config.php, above the line that marks the end of the settings. The tasks now depend on the server cron alone.

Worth knowing

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.

Worth knowing

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.

Free Host by French tool

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.

An indicative recommendation worked out in your browser. It does not know how long your tasks really take, which has to be measured before setting a high frequency.

Is your WordPress site building up late tasks?

Have my scheduled tasks set up

Testing, 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

Mistake 01

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.

Mistake 02

Leaving both triggers on

A server cron and WP-Cron in parallel: the tasks still run during visits, and the expected benefit disappears.

Mistake 03

Running everything every minute “to be sure”

An excessive frequency multiplies the loads of WordPress without speeding up the long tasks.

Mistake 04

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.

Mistake 05

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.

Mistake 06

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

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.

IN SHORT

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 checked

Summary with an AI

Choose your assistant: the request is prefilled where that is possible, and always copied, ready to paste if need be.

ChatGPTSummarise the article PerplexitySummarise the article ClaudeSummarise the article CopilotSummarise the article MistralSummarise the article GeminiSummarise the article
THEY TRUSTED US

Client references

See all case studies
Montreuil-sur-Mer logo Data Labcenter logo Sofradom logo 70 Football logo Afrique sur 7 logo CyberJay logo Élisa Reddet logo Foire du Trône logo Goodyvest logo Kincy logo Lhotellier logo Audrey Mégelé du Bourg logo MYF logo
Sine Qua Non logo Make It Happen logo Sonance Audition logo ACME logo Beluvia Bar Store logo Desaltera logo Fête des Loges logo GD Menuiseries logo 3G Immo logo Lavish logo Maison du Feu logo Mieux Fiscal logo MYF Tea logo
Go deeper

Articles to go further on the WP-Cron guide.

See all articles
A test computer in front of servers, for a WordPress staging site
Infrastructure and operations16 min read

WordPress staging: when is it essential?

A staging site lets you test before touching the real site. Essential for some sites, out of proportion for others. Here is how to decide, and how to use one without creating new risks.

What they say about working with us

Google reviews about the support we provide for the Wp cron scheduled tasks and server cron. page

Google logo 4,8/5 243 verifiable Google reviews Read the reviews
★★★★★
“A WordPress pro. His skills, his grasp of what we needed and his clear explanations made the whole project run smoothly.”
Nicolas Le Couteur Review published on Google
★★★★★
“Always available to answer questions, very professional. Every technical problem we ran into was resolved.”
Cuong Doan Review published on Google
★★★★★
“A professional who listens to his clients. Thank you for the commitment and the time spent on our project.”
Sakina Sedkaoui Review published on Google
★★★★★
“Someone you can trust, who understood my needs straight away and put an effective strategy in place.”
Vincent Loustalot Review published on Google
★★★★★
“Very attentive, motivated and able to propose tailored SEO strategies. The quality of the work is remarkable.”
Marine Mongodin Review published on Google
★★★★★
“Quality work, delivered on time. Maxime is responsive, suggests relevant adjustments and delivers careful work.”
Olivier Opron Review published on Google
★★★★★
“Spot on, perfect work, nothing to fault!”
Robin Gomez Review published on Google
★★★★★
“Maxime adapts very quickly, even to the trickiest technical situations. The result is always there.”
Philippe Bertieaux Review published on Google
★★★★★
“Impeccable work from start to finish, highly responsive and flawless quality.”
Alex Houillon Review published on Google
★★★★★
“The site is fast and visually very good. Maxime also helped us build our SEO strategy.”
Lois Guillermond Review published on Google
★★★★★
“An exceptional developer.”
Honoré Comlan Koumondli Review published on Google
★★★★★
“Maxime showed great professionalism and great creativity in helping us build our charity’s website.”
Julien-Benoit Birman Review published on Google
★★★★★
“A solid understanding of search optimisation when building a WordPress site.”
JM Review published on Google
★★★★★
“Maxime is responsive, a good teacher, and anticipates what is needed to get the strategy right.”
Romain Bergé Review published on Google
Your site deserves better

Let’s talk about your hosting

Tell us about your project. You get a clear recommendation, no jargon and no commitment.

Get my recommendation Reply within 12 hours • Migration handled • Free quote Active infrastructure
Google logo 243 Google reviewsVerifiable public reviews
Find my plan