A wp-cron (or WordPress cron) is actually a virtual cron job.

When you’re faced with issues like plugin conflicts, WordPress bugs or high server load, this cron job can easily break down.

If you have a high-traffic website, it’s always advisable to replace this virtual cron job with a real cron job. In just a few simple steps, you can achieve this task so that you have greater control and consume lesser server resources.

First of all, you’ll need to disable the wp-cron job, and then you can move on to set up a real cron job. It’s also important to make sure that you are well-versed with using Linux commands so that you can use cron jobs in an effective manner.

Here’s how to do it –

1. Open the FTP program.
2. Navigate to the folder where WordPress is installed.
3. Add the following code to the wp-config.php file.

define(‘DISABLE_WP_CRON’, true);

4. Now if you have a wordpress hosting service, log in to your cPanel interface.
5. Go to the Advanced section, and click on the Cron Jobs icon.
6. Under Add New Cron Job, choose a time interval (not less than 15 minutes).
7. Set the following cron command; yourwebsite.com should be replaced with your own domain name.

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

8. Finally, click on the Add New Cron Job button.

You should wait for the elapsed amount of time to verify that the cron job runs successfully. That’s how you can replace the wp-cron with a real cron within a few minutes.

Leave a Reply

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