Search for instant answers to common support and billing questions

How to disable WP-Cron and run It manually

2 min read

Disabling the default WordPress cron (WP-Cron) and setting up a server cron job can help improve your site’s performance, especially if you have a high-traffic site.


 Here’s a step-by-step guide on how to do it:

Disable WP-Cron

1. Access your WordPress installation directory by logging into your cPanel and navigating to the ‘File Manager’.

disable WP-Cron: File Manager in cPanel

2. Locate and open the wp-config.php file in the directory where your WordPress installation is located.

disable WP-Cron: wp-config.php in file manager

3. Add this line anywhere before the line that says /* That’s all, stop editing! Happy blogging. */. 





1

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

Set Up a Server Cron Job

Setting up a server-side cron job will allow WP-Cron to run at regular intervals without relying on website traffic.

1. Login to cPanel

2. In the “Advanced” section, click on “Cron Jobs”.

cron jobs in your cPanel

3. Add a New Cron Job:

Set the Schedule: Common Setting: Run every 5 minutes (adjust as needed).

  • Minute: */5
  • Hour: *
  • Day: *
  • Month: *
  • Weekday: *

Command:





1

wget -q -O - https://yourwebsite.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1

Note: Replace https://yourwebsite.com with your actual website URL.

disable WP-Cron: Cron Page

4. Click “Add New Cron Job”.

This action saves the cron job settings and schedules it to run according to the specified interval. This ensures that the cron job will be executed regularly without needing further intervention, automating tasks such as scheduled backups, updates, or other automated processes on your server.

In conclusion, if you want to disable wp-cron and improve your site’s performance, setting up a server cron job is a smart move—especially for high-traffic sites. Disabling wp-cron reduces unnecessary server load by preventing scheduled tasks from running on every page load. By configuring a reliable server-side cron, you ensure that all background tasks execute on schedule, resulting in a faster, more efficient website.

Did this support article help?

Get in touch, we're here to help you!

You can also check out our knowledgebase for instant answers to common questions

Email Us

We’ll respond to your inquiry as soon as possible.
Get In Touch

Call Us

Our customer support team is available
1300 768 249

Live Chat

Chat with us in real-time using our live chat feature.
Chat Now