WordPress Cron: When to Switch from WP-Cron to Server Cron

Illustrated infographic summarizing: WordPress Cron: When to Replace WP-Cron with Server Cron

By Greg Nowak

If someone on your team checks the site before every campaign email to make sure a scheduled post went live, you already know the cost of unreliable scheduling. The same applies to a morning stock import or a customer reminder. Server cron is worth considering when those jobs routinely start late and your team has to catch the delays by hand.

WP-Cron is WordPress’s built-in scheduler. By default, a request that reaches WordPress gives it a chance to check for due jobs and start a background request to itself. A quiet site can go a long time between those checks, and a failed request back to the site can delay work even on a busy site. Server cron starts processing on a timer while WordPress and its plugins still decide what work is due. WordPress Hosting Handbook

When is server cron worth it?

Ask your host how jobs are currently triggered and where you can see the last run. Then compare when a job was due, when processing started, and when the result was available. If the runner starts on schedule and the stock feed takes 20 minutes to finish, investigate the import or its queue before changing the interval.

Choose a WordPress cron setup based on the cause and cost of delays.
What you see Where to start
Routine housekeeping with flexible timing Keep default WP-Cron while it meets your needs.
Posts or imports start late during quiet periods Try a five-minute server schedule if the deadline allows for the wait and the job’s runtime.
Time-sensitive jobs need to start within a few minutes Assess a one-minute schedule with your host. Check runtime and overlap before shortening the interval.
The host already provides a scheduler Verify the interval, site coverage, and recent runs before adding anything.
Cron starts on time but overdue work keeps growing Check plugin errors, queue throughput, and external dependencies.

A five-minute schedule can leave a newly due job waiting almost five minutes to start. If a stock import takes four minutes and the warehouse needs fresh figures by 08:00, making the import due at 07:50 leaves little margin. Measure how long the job takes during a busy period before committing to a deadline.

Set up one replacement trigger

Back up wp-config.php and record the current setup so you can restore it. Prepare the new schedule under the site’s hosting account and retain its output and errors. Test from the environment the scheduler will use. A manual run with --due-now can send queued emails, process renewals, or call integrations, so review the pending work before testing in production.

Run due events with WP-CLI

For a Linux user crontab with WP-CLI installed as a Phar, this runs every five minutes. Replace the PHP, WP-CLI, and WordPress paths with the values supplied by your host. If your host provides a WP-CLI wrapper, use its supported invocation. Keep the plugins that own the jobs loaded.

*/5 * * * * /usr/bin/php /usr/local/bin/wp cron event run --due-now --path=/var/www/example.com

For a controlled manual run, use the same command without the five schedule fields. On multisite, run it for each site you need to cover by appending its URL, for example --url=https://site.example.com. Verify each site independently and check wp help cron event run before relying on --network. Lock handling also depends on the installed cron command. For example, the standard WP-CLI 2.12.0 bundle can overlap another cron run. If jobs can outlast the interval, agree with your host on how to prevent a second run from starting. WP-CLI event run reference · WordPress hosting guidance

Trigger wp-cron.php over HTTP

If your hosting panel only supports URL-based jobs, schedule a request to https://example.com/wp-cron.php. You can also make that request from a user crontab with wget.

*/5 * * * * /usr/bin/wget --delete-after https://example.com/wp-cron.php

Test from the actual scheduler. Authentication, redirects, caching, or firewall rules can prevent the request from reaching the right WordPress installation. WordPress Plugin Handbook

Cut over and verify the result

Once you’ve tested the replacement, activate it and turn off the request-driven trigger in the same change window. Add or update this line in wp-config.php above the stop-editing comment. WordPress keeps its scheduled events. WordPress system scheduler guidance

define( 'DISABLE_WP_CRON', true );

Watch the first automatic run with due work. Compare the scheduled events before and after it, then check the result the team relies on. Open the published page, confirm the stock changed, or check that the integration received the update. An HTTP 200 or an event disappearing from the list only tells you part of the story. WP-CLI event list reference

wp cron event list --path=/var/www/example.com --fields=hook,next_run_gmt,next_run_relative,recurrence

Expect wp cron test to report an error after the switch because it tests WordPress’s default trigger. If a plugin uses Action Scheduler, also check its failed actions and the age of the oldest overdue action. A persistent backlog may call for a dedicated queue runner after you’ve checked the failures and available capacity. WordPress hosting guidance · Action Scheduler CLI documentation

Leave the team the schedule, account, site coverage, and log location. Agree who gets alerted and how late a critical job can be before someone acts. If you need to roll back, restore the previous trigger and pause the replacement in the same change window, then verify that processing resumes.

If you’re still chasing a late job, bring one example and when it needed to finish. I can help trace the delay and coordinate the fix and handover with your host or agency. Talk to me about your WordPress setup.

Related on GrN.dk

Need help with this kind of work?

Talk to Greg about late WordPress jobs and how to coordinate a fix with your host or agency. Get in touch with Greg.

Sources

Latest articles

Find the apps, scripts and printers that still send mail through Microsoft 365 with a mailbox password, then test a replacement before the December 2026 change.

Find subscriptions and insurance expenses in e-conomic that should be spread over several months. See how AI reads the supporting documents and how your finance lead approves the proposed allocations.

Before relying on an AI project briefing, check which files it covered. A practical workflow for tracking documents, recording gaps and verifying key claims.

Check whether your contact form rejects missing or invalid Turnstile tokens, handles failed checks for genuine users and delivers accepted enquiries to your team.

Compare Bing citations, identifiable AI visits and verified enquiries to see which pages deserve attention before you increase your AI search marketing budget.

Teamtailor is phasing out Riminder on 21 November 2026. Check your parser settings, contact fields and integrations, and make sure you have a process for deleting applicant data.

WordPress jobs running late? Learn how to separate scheduling problems, task errors and a growing backlog, then choose the right scheduler or runner.

Before changing an AI workflow, check that it still does the job. Use realistic examples, clear release criteria and a comparison with the version running today.

Sending an invoice does not mean it has arrived. Understand delivery statuses, the system requirements coming in 2027, and how focused AI support can help finance teams handle errors and follow-up.

Before scaling AI content, check the pages you already have. Verify claims, resolve overlapping coverage, and give WordPress reviewers control over publication.