• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
NameHero® Blog

NameHero® Blog

Web Hosting Tips & Resources From NameHero

  • AI Agents
    • OpenClaw
    • Claude Code
    • n8n
    • Hermes Agent
    • Open WebUI
    • Docker
  • Hosting
    • Web Hosting
    • WordPress Hosting
    • WooCommerce Hosting
    • Enterprise Hosting
    • Email Hosting
    • HeroicGuard
    • GPU Hosting
    • Website Builder
  • VPS
    • Managed VPS
    • Unmanaged VPS
    • Flex VPS
  • Reseller
  • Gaming
  • Domains
  • Account
  • Blog Home
  • Categories
  • Authors

How To Disable WP-Cron In WordPress

Ryan Gray

Published on: August 9, 2017

Categories: WordPress 0

One of the biggest support requests we see with WordPress has to deal with the wp-cron process.

WP-Cron manages all the scheduled events in your WordPress website.  It’s a very common cause for high CPU loads and memory consumption especially for websites with very large databases and/or traffic.

By default WordPress is setup to call the wp-cron.php file each time someone hits your website.  For most websites this is fine but when you start to get a lot of traffic it can really start to stack up the processes and take a toll on the overall performance of your website.

How to disable wp-cron.php

Thankfully it’s very easy to disable wp-cron.php by just adding a line of code to your configuration file:

  1. Navigate to wp-config.php file where you have installed WordPress
  2. Open it up in file manager or your favorite text editor
  3. Add the following: define(‘DISABLE_WP_CRON’, true);
  4. Save the file and re-upload.

Now WordPress will no longer automatically run this file when a visitor accesses your website.

Setup wp-cron.php to run manually

Disabling wp-cron.php is going to free up a lot of that CPU/memory usage, but you still need to have it run so WordPress will have the ability to automate any tasks it needs to carry out.

To do this we just need to setup a cronjob inside of cPanel to execute the file:

  1. Login to cPanel and navigate to Cron Jobs
  2. Add a new cron job to run once an hour with the following command: wget https://www.yourwebsite.com/wp-cron.php > /dev/null 2>&1
  3. Make sure to replace yourwebsite.com with the correct URL to your wp-cron.php file.
  4. Click Add New Cron Job

You’re then all set!  WP-Cron will only run once an hour and not when every time someone visits your website.

If you have any questions on this or would like our team to set it up for you, feel free to reach out!

Ryan Gray

Ryan Gray is the founder and CEO of NameHero, one of the fastest growing independent web hosts in the United States. Ryan has been working online since 1998 and has over two-decades experience in Internet Entrepreneurship.

Related Posts

What Is Self-Hosted WordPress?

In this post, we’ll differentiate self-hosted WordPress from WordPress.com, and discuss the benefits of the former.

How To Start A Newsletter In WordPress

Check out our complete guide on why and how you should start your own newsletter in WordPress.

How to Eliminate Render-Blocking Resources in WordPress (& Why You Should)

Many things can slow down your site, including render-blocking resources. These are CSS and JavaScript files that delay the loading of content on your site. As a result, visitors will have to wait longer to interact with your page, which could lead to frustration and instant exits.  So, what can you do to eliminate render-blocking […]

How To Back Up Your WordPress Site (And Why You Should Do It Today)

In this post, we’ll take a closer look at why backups matter. We’ll also show you different ways to back up your WordPress website.

Reader Interactions

Leave a Reply Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Follow & Subscribe

Exclusive promos, content and more!


Most Popular Posts

NameHero’s Recommended WordPress Plugin and Theme Setup

WordPress Hosting vs. Web Hosting – What’s The Difference?

How To Increase The InnoDB Buffer Pool Size

How To Fix A Stuck All-in-One WP Migration Import

How To Add A Subdomain In Cloudflare

Top Categories

  • WordPress
  • WordPress Tutorials
  • OpenClaw Hosting
  • Enterprise Hosting
  • WooCommerce
  • Web Hosting
  • Resellers
  • Website Security
  • Website Development
  • Website Performance
  • VPS Hosting
  • SEO Tips
  • Announcements
  • Domain Registration
NameHero

NameHero® proudly provides web hosting to over 40,000 customers with 99.9% uptime to over 750,000 websites.

  • Master Card
  • Visa
  • American Express
  • Discover
  • Paypal
Products
  • Web Hosting
  • Managed VPS Hosting
  • Unmanaged VPS Hosting
  • Flex VPS Hosting
  • WordPress Hosting
  • WooCommerce Hosting
  • Reseller Hosting
  • Enterprise Hosting
  • GPU Hosting
  • Email Hosting
  • HeroicGuard
  • Domains
  • Website Builder
  • AI Agent Hosting
Help & Support
  • NameHero Blog
  • NameHero Gaming Blog
  • Support
  • Help Center
  • Migrations
  • Affiliates
  • Gaming Affiliates
  • Call 1-855-984-6263
Company
  • About Us
  • Contact Sales
  • Reviews
  • Uptime
  • We're Hiring

Copyright © 2026 Name Hero, LLC. All rights reserved.
NameHero® is a registered trademark.

  • Privacy Policy
  • Terms of Use
  • Acceptable Use Policy
  • Payment Policy
  • DMCA