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.
Related Articles
How to reduce consumption and protect wp-login.php
In some cases, attackers may attempt to flood your wp-login.php file with repeated requests in order to guess your username and password. These brute-force attempts can not only compromise your credentials but also overload your server resources. To ...
How to reduce consumption wp-admin/admin-ajax.php
Sometimes our WordPress installation may make excessive use of admin-ajax.php, consuming a large amount of the server’s available resources and overloading it. This file comes by default with our WordPress installation as it is part of the core, and ...
What to do in case of overconsumption in our accommodation
When the applications you have hosted generate high server resource consumption, it can affect the rest of the websites hosted on the same machine. For this reason, when cdmon technicians detect this consumption, they inform you via email. This ...
How to set up hosting PHP
Within the advanced tools of the hosting service, you will find the option Configure PHP, where you can modify different PHP directives to adjust your hosting to the requirements requested by some CMS applications. These values vary depending on the ...
Wp-config-php, what it is and what it is for
In WordPress, the wp-config.php file is one of the most important files and is essential for the proper functioning of your website. This file contains the most important configurations of your website, such as database information, authentication ...