General Topics

Fascinating Disable WP-Cron WordPress or Control Tactics

Let’s read about the method of disabling or controlling the WP-Cron.php job.

First Let’s Talk about Robbery in a Bank…

Before talking just think about the team who want to rob a bank. They will hire a driver for a specific time. After it, they will enter in the bank and start their stopwatch. Now they have only 180 seconds for rob and grab everything from the bank. Furthermore, if they want to defeat the cops then their driver must be conscious.

Now if you are a planner of this robbery. Then you must check that, is everything working properly? But if the driver’s watch is working differently from others then? What if he is smoking at that time or listening phone?

Now let’s talk about WP-Cron job…

What is WordPress WP-Cron?

Now a simple introduction about what is WordPress WP-Cron? In fact, WP-Cron is a feature which works automatically for publishing schedule posts, theme checking and auto updating of plugins or showing notifications.

While WordPress configure this to work every time. So when you are running low traffic site. Then this is the best feature for your site. But when site traffic increase then it makes panic for you. Due to this feature, you face slow site speed and excessive resource usage CPanel. Furthermore, let’s read how to disable WP-Cron WordPress?

A Simple Way To Disable WP-Cron WordPress?

However, you can easily disable WP-Cron WordPress setting by execution of a simple code in wp-config.php.

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
  • Just place the below code after the above line.
define('DISABLE_WP_CRON', 'true');
  • Lastly, click on the save button.

If You Don’t Want To Disable Just WP-Cron Control WordPress

However, if you don’t want to disable WordPress WP-Cron then just see how to control the feature of this WordPress. If your site has low traffic then no need to disable this. But if your site traffic is huge then you need to disable this timely. Let’s start the work….

Note: Every hosting account has maybe differed section for disabling or controlling this feature. So don’t upset but the method will be same.

  • Login to CPanel.
  • Now search for the Advanced section.
  • Here you will find Cron jobs.

WP-Cron-Jobs

  • Now set to once per hour.

Once per hour

  • Here you need to select every sixth hour from the drop down list.

Every Sixth hour

  • Copy the below code and paste in the command section. Keep in mind change userna5 with your CPanel username.
cd /home/userna5/public_html; php -q wp-cron.php

Place command

  • Click on Add new Cron job. You will get a message of successful creation.

Add-cron-jobs

Now it will work on these hours and minutes. But you will not get any email or message when it will work.

Lastly, if you face any difficulty to setup this feature of WordPress. Then you can contact us or leave a comment in the comment section. However, if you have another idea for disabling WP-Cron or control this. Then share us through a guest post. Furthermore, I hope you will like the below article and follow us on Twitter.

How To Test WP-Cron.php?

Now the turn to test WP-Cron.php. Is it working or really disable this feature of the WordPress. I will suggest reading here the method for testing this feature. Because WordPress developers have clearly told the best way to test this feature.

Simple Testing

However, if you are not an expert then why are you worrying about it. Just install the WordPress plugin and rid of this panic. Let’s install the below plugin and configure this one for controlling or disabling this:

WP Crontrol

Supporting Articles

Update WordPress Theme Without Losing Content

WordPress Heartbeat

WordPress Display Post Meta Data

Show More

Global Blurb Team

“Global Blurb since 2015” Global Blurb providing information about SEO, Beauty, Health & Fitness, Interior designing, Fashion and ways of earning online without investing a penny. The blog designed to share ideas about different topics.