+91 88 00 563434 sales@webhostingpeople.net

Our Knowledge Base Articles

Company Blog

How to Disable Wp-Cron and Replace It with A Real Cron Job

You are here:

How you can Disable Wp-Cron and Change It with A Actual Cron Job

WordPress makes use of a workaround file referred to as wp-cron.php as a digital cron job or scheduled process for automating issues like publishing scheduled posts, checking for WordPress plugins and theme updates, sending e-mail notifications and many others. WordPress setup a name to wp-cron.php each time somebody masses your WordPress web site. It checks if there’s a scheduled process to be completed and executes if obligatory.

In some circumstances, the wp-cron.php file might turn out to be the goal of DDOS assaults or it could intrude with the caching plugins which might trigger loads of server load or improper working of the scheduled process execution. So it’s essential to disable and change this with an actual cron job.


Linux Cron Job vs. WP-Cron

Linux cron jobs may be managed by the person that lets you run scheduled duties in your net server. It’s helpful when a WordPress web site is excessive a visitors, the Linux cron job can assists with lowering the probabilities of downtime by reducing the bandwidth of the server, thus utilizing fewer server sources.

wp-cron.php as a digital cron job that solely works when the web page is loaded. wp-cron is first loaded by WordPress when an internet site web page is requested on the entrance finish or backend which displaces the required web page to the customer.


Disable wp-cron.php

You may disable wp-cron by modifying the file wp-config.php contained in the folder during which the WordPress is put in. Open wp-config file and add the next code

outline(‘DISABLE_WP_CRON’, true);


Setting Actual Cron Job

1) Login to cPanel.

2) Navigate to “Cron Jobs” beneath “Superior” part.

Disable Wp-Cron


3) Add the next command to be executed each 30 minutes:

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

Change yourdomain.com together with your precise web site title.

Cron Job


4) Click on on the button “Add New Cron Job”.


If you happen to want any additional assist, please do attain our help division.



Leave a Comment