• Skip to primary navigation
  • Skip to main content
  • Skip to footer

JohnnyVPS

ULTRA-fast WordPress Hosting

  • Features
  • Pricing
  • Support
  • Reviews
  • Sign Up

Use a real cron job instead of WP-cron

Posted on September 15, 2020 by Johnny Nguyen

STEP #1 – disable WP-cron from your wp-config.php file

  • Open up wp-config.php
  • Add define( 'DISABLE_WP_CRON', true); anywhere above the line that says, “That’s all, stop editing! Happy blogging.”

STEP #2 – create a cron job from your webhosting control panel

  • Log into your webhosting control panel (cPanel, etc) and find the Cron Jobs function.
  • Add this line and set it to 5 min intervals or higher (if you want to be nice to JVPS servers) wget -q -O - https://domain.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1 (change the domain to yours)

NOTES:

  • Some guides out use the server directory path (/home/user/public_html/wp-cron.php?doing_wp_cron) instead of the URL. I prefer the domain version as it’s easier to understand and safer (since actual server directory might be different). I think the only benefit to the server path version is that it’s slightly less server work due not having DNS lookups and SSL handshake but it’s not noticeable at all.
  • You can use WP Crontrol plugin to manage your cron jobs if you feel they’re backed up or stuck. It’s sometimes an issue for bloated sites. If your cron jobs haven’t run for a while, your site may seem slow or crashed while it catches up. Just wait 5-10 minutes and it should work again.
  • Multi-sites only have to set the cron job for the main site domain. You don’t have to set for each site in there.

Looking for ultra-fast WordPress hosting?

Learn More About JVPS

Post navigation

←Previous

Security headers for .htaccess

Next→

Increase WordPress memory limits

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Footer

Features

  • Speed
  • Reliability
  • Security
  • …see all.

Comparisons

  • WP Engine
  • Flywheel
  • SiteGround
  • Cloudways

Support

  • Documentation
  • Facebook group
  • Submit a Ticket
  • Slack

Company

  • About JVPS
  • Blog
  • FAQ
  • Terms

JohnnyVPS

Boutique webhost specializing in speed, reliability, and security. Servers in USA, Europe, Asia, and Australia!

Contact Us

© 2026 JohnnyVPS. All rights reserved.

Media Affiliates Newsletter Facebook Twitter
GDPR Cookie Banner

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .