
To configure WordPress cron jobs reliably, disable WordPress’s traffic-triggered pseudo-cron and replace it with a real server cron that runs on a fixed schedule. For most sites, running `wp cron event run --due-now` every 5 to 15 minutes is the cleanest option. It prevents scheduled posts, WooCommerce actions, backups, and plugin maintenance from depending on a visitor loading a page.
WordPress cron is frequently blamed only after something breaks: an abandoned-cart email never sends, a product feed goes stale, or scheduled posts publish hours late. The underlying issue is usually simple. WP-Cron does not run continuously in the background. By default, WordPress checks for due tasks only when a web request reaches the site.
Why WP-Cron Causes Problems on Real Sites
WP-Cron is not a system cron daemon. It is a WordPress process initiated during a page request. When a visitor opens a page, WordPress may spawn a secondary request to `wp-cron.php` and process anything that is due.
That design is convenient for a small blog with steady traffic. It is a poor fit for a business site with uneven visits, aggressive caching, or a busy WooCommerce store. A low-traffic site may have no request at the moment a task is due. A high-traffic site can have the opposite problem: repeated cron checks consume PHP workers and database capacity during peak traffic.
Full-page caching changes the behavior further. When NGINX, LiteSpeed, or a CDN serves a cached page without reaching PHP, that request cannot trigger WP-Cron. The site may look fast while its scheduled tasks quietly fall behind.
A real server cron separates background maintenance from customer-facing traffic. That is the correct operational model.
Configure WordPress Cron Jobs With a Server Cron
Before adding a system-level job, tell WordPress to stop spawning its own cron requests. Edit `wp-config.php` and place this line above the comment that says, “That’s all, stop editing!”:
define('DISABLE_WP_CRON', true);Do not add this constant until the replacement cron job is scheduled. Disabling WP-Cron without a server cron guarantees that tasks will stop running.
Preferred method: WP-CLI
WP-CLI runs scheduled events without making an HTTP request to the public site. It is more dependable, avoids interference from web application firewalls, and gives you useful error output for troubleshooting.
A typical crontab entry looks like this:
/5 * cd /var/www/html && /usr/local/bin/wp cron event run --due-now --path=/var/www/html --quiet >/dev/null 2>&1Adjust both paths for your server. The `cd` command puts the process in the WordPress document root. The `--path` argument removes ambiguity if the job is launched from another working directory.
On managed environments, the PHP user and file ownership matter. Run WP-CLI as the same operating system user that owns the WordPress files whenever possible. Running it as `root` can create root-owned cache files, plugin update files, or uploads that later prevent WordPress from writing normally.
For most sites, every five minutes is a sensible starting point. A content site that only publishes scheduled posts can often use every 15 minutes. A WooCommerce store running subscriptions, membership expirations, order automation, or Action Scheduler queues may need a one-minute interval, but only after checking PHP worker capacity and task volume.
Alternative method: call wp-cron.php over HTTPS
If WP-CLI is unavailable, schedule a command-line HTTP request to WordPress instead:
/5 * curl -fsS https://example.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1Use the site’s canonical HTTPS hostname. The `-f` flag makes curl fail on HTTP errors, while `-sS` suppresses normal output but preserves error messages when you test the command manually.
This approach works, but it has more failure points. A firewall can block the request, basic authentication on a staging site can reject it, and DNS or TLS issues can break cron even though PHP itself is healthy. WP-CLI is usually the better long-term choice.
Choose an Interval That Matches the Workload
More frequent cron is not automatically better. Each run boots WordPress, loads active plugins, connects to the database, and processes tasks. On a poorly optimized site, a one-minute schedule can create a constant stream of PHP work.
Use the schedule that matches the consequence of delay:
| Site workload | Practical interval |
|---|---|
| Scheduled posts, routine cleanup, light email | Every 15 minutes |
| Typical business site with forms and integrations | Every 5 minutes |
| WooCommerce subscriptions, memberships, time-sensitive automations | Every 1-5 minutes |
| Large queues or high-volume stores | Depends on queue health and server capacity |
For busy stores, the right fix is often not simply running cron more often. First find the slow task. A plugin may be generating large reports, making blocked remote API calls, or querying an oversized options table on every cron run. Faster hardware helps, but it cannot make an inefficient scheduled job disappear.
Check What WordPress Is Actually Scheduling
Start by listing cron events:
wp cron event list --path=/var/www/htmlLook for overdue events, unusually frequent hooks, and callbacks belonging to plugins you no longer use. An event that runs every minute but takes 90 seconds will pile up. Repeated failures can create a backlog that makes each subsequent run slower.
To run all due events manually and view output, remove `--quiet`:
wp cron event run --due-now --path=/var/www/htmlRun this during a controlled period, especially on a production store. It may send queued emails, process subscription renewals, generate feeds, or trigger other legitimate work immediately.
If you use WooCommerce, inspect Action Scheduler separately. WooCommerce and many extensions use it for background work such as webhook delivery, subscription processing, and database updates. A healthy WordPress cron configuration does not fix an Action Scheduler table clogged with failed or long-running actions.
Check the WordPress admin area for pending and failed scheduled actions. A growing pending queue is a capacity or task-performance problem. A growing failed queue usually points to a plugin error, exhausted PHP memory, a blocked API endpoint, or a database issue.
Avoid the Common Configuration Mistakes
The most damaging mistake is setting `DISABLE_WP_CRON` and assuming the hosting control panel will handle the rest. Verify the actual command, interval, user, and output. A cron entry that exists but points to the wrong PHP binary is not a working cron job.
Also avoid running multiple replacements at once. If a server cron calls `wp-cron.php` every minute while an external monitoring service does the same thing, tasks can overlap. WordPress has locking behavior, but long-running processes and imperfect locks can still lead to duplicated work or excess PHP consumption.
Do not use a web cron service that exposes an obscure URL as your only protection. `wp-cron.php` is designed to be reachable, but repeated public requests create needless attack surface and log noise. Prefer WP-CLI. If HTTP triggering is required, restrict the endpoint at the server or firewall layer where your configuration allows it.
Finally, do not diagnose cron in isolation when the site is already slow. High TTFB, exhausted PHP workers, a locked database table, or object-cache failures can delay cron just as easily as they delay page loads. Cron is background work, but it competes for the same CPU, database, and PHP resources as checkout requests.
Verify the Job at the Server Level
After saving the crontab, test the exact command manually as the intended user. Then inspect the system cron log or redirect output to a temporary file during setup:
/5 * cd /var/www/html && /usr/local/bin/wp cron event run --due-now --path=/var/www/html >> /var/log/wp-cron.log 2>&1Once the job is proven, reduce logging or rotate the file. Leaving verbose output enabled indefinitely can fill disks, particularly when a plugin emits recurring warnings.
Track three signals over the next day: overdue WordPress events, pending WooCommerce actions, and server resource usage at the cron interval. On properly sized infrastructure, routine cron work should be unremarkable. If CPU spikes, PHP workers saturate, or database latency jumps every five minutes, treat that as a workload investigation, not a reason to hide the evidence by scheduling less often.
High-frequency CPU capacity and properly isolated PHP resources give scheduled work room to run without stealing time from shoppers. That is one reason infrastructure choices matter for stores with constant queue activity. Still, clean scheduling and plugin discipline come first.
A working cron setup should be boring: tasks run near their due time, logs stay clean, and customers never notice it. Set it up once, test it under real conditions, and revisit it whenever you add a plugin that promises to automate something in the background.




