Skip to content
FunnelGuard

Fix guide by FunnelsGuard

WP-Cron delaying leads: why form emails and CRM sync arrive late

DLV-257Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

WordPress has no always-on background process. Instead, WP-Cron checks on every page load whether any scheduled task is due, and runs it if so. Many form, CRM and email plugins use it to send notifications, retry failed API calls or push leads to a CRM in the background.

If nobody visits the site, nothing triggers the check. The task stays in the queue until the next visit. The form looks fine and the lead is saved, but the email or CRM record shows up late.

How a lead gets stuck in the WP-Cron queue
  1. Form submittedVisitor sends the form
  2. Job queuedPlugin schedules email or CRM sync
  3. Waiting for a visitNo page load, no cron run
  4. Email / CRM syncRuns late
  5. Sales follow-upStarts late

The lead is captured, but the delivery job waits for a page load that may not come soon.

Why it costs you leads or sales

Speed matters for enquiries. A person who filled in a form is most interested right then. If your team sees the lead an hour late, a competitor may have replied first. Late leads also break auto-responders, booking confirmations and sales alerts that people expect within seconds.

The risk is highest at night, at weekends and on low-traffic sites, exactly when no visitor arrives to wake the scheduler. Because the lead does arrive eventually, nobody notices a problem and it can run for months.

Delay before a lead reaches the inboxExample numbers
Delay before a lead reaches the inbox (example)Busy hour (daytime): 1 minutes; Quiet afternoon: 15 minutes; Evening: 90 minutes; Overnight: 420 minutes016132211590420Busy hour (daytime)Quiet afternoonEveningOvernightminutes

Example: illustrative delays on a quiet site. Real delays depend on your traffic and plugins.

How to check if your site has it

Check whether WP-Cron is delaying your leads
  1. Submit a test lead when the site is quiet

    Use a spare email address, ideally at a low-traffic time, and note the exact time you submitted it. Do not browse the site afterwards.

  2. Compare timestamps

    Check when the notification email arrived and when the CRM record was created. A gap of more than a minute or two points to queued jobs.

  3. Look at the scheduled eventsWordPress

    Install a free scheduler viewer such as the WP Crontrol plugin and open Tools > Cron Events. Overdue events with a past 'Next Run' time are a sign the queue is waiting.

  4. Check whether WP-Cron is already disabledWordPress

    Open wp-config.php and look for define('DISABLE_WP_CRON', true);. If it is there, confirm a real cron job actually calls wp-cron.php. Disabled with no replacement is worse.

  5. Check your form plugin's logsWordPress

    Many plugins log when an email was queued and when it was sent. A large gap between the two confirms the delay.

How to fix it

The fix has two parts: stop WordPress from relying on visitors, and call wp-cron.php on a fixed schedule. Do both, in this order, so the queue never goes unattended.

Run WP-Cron from a real scheduler
  1. Disable visit-triggered cron

    Add define('DISABLE_WP_CRON', true); to wp-config.php, above the line that says 'That's all, stop editing'.

  2. Add a server cron job

    In your host's control panel (often called Cron Jobs or Scheduled Tasks), run wp-cron.php every 1 to 5 minutes. Use the command in the code block below.

  3. Check the plugin's own queue

    Some plugins use their own queue (for example Action Scheduler). It also runs through WP-Cron, so the same fix applies. Check its status under Tools > Scheduled Actions if present.

Crontab: run due WordPress tasks every 2 minutes (WP-CLI)bash
*/2 * * * * cd /var/www/html && wp cron event run --due-now --quiet
wp-config.php: stop WP-Cron firing on page loadsphp
define('DISABLE_WP_CRON', true);

Also consider whether the email needs to be queued at all. Some form plugins can send notifications immediately rather than in the background. Check your plugin's settings for options such as sending synchronously or using a transactional email service.

How to confirm it's fixed

Confirmation checklist
  • Submit a test lead during a quiet period and do not visit the site afterwards
  • The notification email arrives within a minute or two
  • The CRM record is created within the same window
  • No overdue events appear in WP Crontrol (Tools > Cron Events)
  • Your host's cron log shows the job running on schedule
  • Repeat the test overnight or at a weekend once to be sure

How to prevent it happening again

Keep the delivery chain fast
  • Document that the site uses a server cron, so a host migration does not drop it
  • Re-create the cron job after moving hosts or restoring a backup
  • Review overdue scheduled events after major plugin updates
  • Use a transactional email service for notifications
  • Test lead delivery speed on a schedule, not only when you remember

How FunnelGuard handles this

FunnelGuard detects this today. It runs your lead form on a schedule as a robot visitor, submits a marked test lead, and checks whether it reaches the inbox and CRM. The delivery speed check measures how long that takes. A test lead that arrives late, because a queued job waited for a visit, is flagged instead of passing silently.

A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause. FunnelGuard shows that delivery is slow. It does not change your cron setup, so you still make the fix above. The Free plan covers 1 site and 2 journeys with daily checks and no card.

Questions people ask

Why are my WordPress form emails arriving late?

A common cause is WP-Cron. Your form plugin queues the email as a scheduled task, and WordPress only runs due tasks when someone loads a page. On a quiet site the email waits until the next visit.

Does WP-Cron only run when someone visits my site?

Yes, by default. WordPress checks for due tasks on page loads. With no visitors there is no trigger, so tasks wait. A server cron job that calls wp-cron.php removes that dependency.

How do I replace WP-Cron with a real cron job?

Add define('DISABLE_WP_CRON', true); to wp-config.php, then create a server cron job that runs wp-cron.php or wp cron event run --due-now every 1 to 5 minutes. Set up the cron job at the same time, or scheduled tasks will stop.

Is it safe to set DISABLE_WP_CRON to true?

Only if a real cron job replaces it. Disabling it alone stops all scheduled tasks, including lead delivery, backups and updates. Test that the cron job runs before you rely on it.

How often should the server cron run?

Every 1 to 5 minutes suits most lead sites. Shorter gaps mean faster delivery. Check your host's limits, as some shared plans restrict how often jobs can run.

How can I see if WP-Cron tasks are overdue?

Install the WP Crontrol plugin and open Tools > Cron Events. Events whose next run time is in the past are overdue. A long list of them means the scheduler is not being triggered often enough.

Can page caching stop WP-Cron from running?

Yes. If a cache serves pages without running PHP, those visits do not trigger WP-Cron. Even busy cached sites can see delays, which is another reason to use a real cron job.

How can I be alerted when leads are delayed?

Run a scheduled test submission and measure how long the email and CRM record take to appear. FunnelGuard does this with its delivery speed check and alerts you when delivery is late.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: delivery_speed.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.