How to reduce wp-cron.php consumption

How to reduce wp-cron.php consumption

WordPress has scheduled tasks such as checking for WordPress, plugin, or theme updates, creating backups, performing pingbacks, etc.
 
These tasks are usually triggered when someone visits the website, for example. This is why it does not pose a problem until you experience a traffic spike and thousands of unnecessary checks are executed — checks that were already performed less than a second ago — overloading the server:
 

To avoid this type of consumption, you can control when these checks are executed and limit them to once per hour. For example, this way only 24 checks will run per day, preventing server overload.
 
First of all, it is recommended to disable it in the wp-config.php file by adding the following code before the line that says require_once(ABSPATH . 'wp-settings.php');, which is when WordPress loads this configuration: 
 
define('DISABLE_WP_CRON', true);
 
Once modified and saved, you must create the cron job in your cdmon control panel. Access the Cron tool within your hosting management:
 
 
Then configure it with the following settings. The recommended default interval is once per hour, but if necessary, you may set a different interval:
 
 
With this setup, you can control the resource usage generated by WordPress tasks and reduce overall consumption.

 
For more information, you can  contact us .