Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Turn Off WP-Cron to Speed Up WordPress

This guide shows how to stop WordPress from running its task timer on every page visit, and use a real server timer instead.

Speed and Performance2 min read14 steps4 screenshots

What is WP-Cron?

WordPress must do small jobs again and again. It publishes scheduled posts, checks for updates and sends emails. WP-Cron is the part that keeps track of these jobs.

The problem is how it works. WP-Cron checks for jobs every time someone opens a page. On a busy site, this wastes power and can slow the site. On a quiet site, jobs can run late.

A cron job is a real timer on the server. It runs a task at a time you choose. Think of an alarm clock. It is more steady than checking at every visitor.

Warning: You will edit an important file. Take a backup of your site and of the wp-config.php file first. A typing mistake can break the site.

Step 1: Turn off the built-in WP-Cron

  1. Log in to cPanel from your Hostvento client area at https://secure.hostvento.com/clientarea.php.
  2. Open File Manager.
  3. Go to the folder where WordPress lives. This is often public_html.
  4. Right-click wp-config.php and choose Download to save a copy. Then right-click it again and choose Edit.
  5. Find the line that says /* That's all, stop editing! */.
  6. Above that line, add this:
    define('DISABLE_WP_CRON', true);
    This tells WordPress not to run its timer on page visits.
    Screenshot: Above that line, add this: define('DISABLE_WP_CRON', true); This tells WordPress not to ru
  7. Click Save Changes.

Step 2: Add a real cron job

  1. Go back to the cPanel home page and open Cron Jobs.
    Screenshot: Go back to the cPanel home page and open Cron Jobs .
  2. Under Common Settings, choose Once Per Fifteen Minutes. You can pick every 30 minutes for a quiet site.
  3. In the Command box, type this. Change example.com to your own domain:
    wget -q -O - https://example.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
    This visits the WordPress job file and throws away the output.
  4. Click Add New Cron Job.
    Screenshot: Click Add New Cron Job .
    Screenshot: Click Add New Cron Job .

Check that it works

  1. Schedule a post for a few minutes ahead.
  2. Wait for the time to pass and for the next cron run.
  3. Check that the post went live.
Tip: To undo this, remove the new line from wp-config.php and delete the cron job.

Quick recap

  • WP-Cron runs on every visit, which can slow a busy site.
  • Add define('DISABLE_WP_CRON', true); to wp-config.php.
  • Create a cron job in cPanel that calls wp-cron.php.
  • Back up before you edit.
  • Test with a scheduled post.