WP-Cron is not a real scheduler: it runs only when someone visits the site. On quiet sites scheduled posts publish late; on busy sites it adds work to page loads. A system cron job fixes both.

WP-Cron vs system cron: page-load triggered vs scheduled every five minutes
A fixed schedule beats visit-triggered tasks.

From my own work: All my WordPress sites on one VPS run WP-Cron from system cron every 5 minutes. That is how scheduled blog posts publish on time even when nobody is visiting.

1. Disable the visit-triggered cron

// wp-config.php
define( 'DISABLE_WP_CRON', true );

2. Add a system cron job (Linux)

crontab -u siteuser -e
*/5 * * * * cd /var/www/example.com && /usr/bin/wp cron event run --due-now --quiet
# or without WP-CLI:
*/5 * * * * /usr/bin/php /var/www/example.com/wp-cron.php > /dev/null 2>&1

This matches WordPress’ own guidance. Run as the site user, not root. Syntax: crontab(5).

CloudPanel and cPanel

  • CloudPanel: Site → Cron Jobs → add the PHP command every 5 minutes with the right PHP version.
  • cPanel: Advanced → Cron Jobs → Common settings: once per five minutes.

3. Verify

wp cron event list --fields=hook,next_run_relative
wp cron event run --due-now
grep CRON /var/log/syslog | tail

wp cron event run executes due events immediately.

Troubleshooting

  • Scheduled posts still late: check the cron user can read wp-config and that PHP path is correct.
  • Multisite: run cron for each site URL (wp cron event run --due-now --url=...).
  • Heavy jobs (backups, imports) belong in Action Scheduler or separate cron entries.

More commands: WP-CLI cheat sheet.

Want this done on your own server or site?

I am Saizul Amin, a web developer and technical SEO consultant. I set up and harden VPS servers, migrate WordPress sites, fix indexing problems and build automations. See my portfolio or get in touch.

FAQ

How often should the cron run?

Every 5 minutes suits most sites; busy stores sometimes use every minute.

Will disabling WP-Cron break plugins?

No, as long as the system cron runs; plugins still schedule events the same way.

Does this work on shared hosting?

Yes, if your host allows cron jobs in the control panel.

Sources

NEW BLOGS. REAL STRATEGIES. REAL RESULTS.

Join our community and receive powerful SEO tips, web optimization guides, and growth strategies as soon as they’re published.

Don’t just read blogs — stay ahead of the competition.

We don’t spam! Read our privacy policy for more info.

Share.
Leave A Reply