How to reduce wp-cron.php consumption

How to reduce wp-cron.php consumption

WordPress has scheduled tasks, such as checking WordPress updates, plugins or theme, backing up, pingbacks, etc.

These tasks are usually triggered when someone visits the web, for example. That is why it is not a problem until you have a peak of visits and thousands of unnecessary checks are executed that have already been checked less than a second ago over-saturing the server:


To avoid this type of consumption, you can control when these checks are executed and limit them to hourly. For example, so that only 24 checks will be done at the end of the day and thus not saturate the server.

First of all, it is recommended to disable it in the wp-config.php file by adding this 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 in your dashboard.cdmon, access the Crons tool within accommodation management:


And you set it up with the following data, the default time recommended is every 1 hour, but if for some reason it is necessary to put another value it is possible to put another:
With this you can control the consumption done by WordPress tasks and thus reduce it.

For more information, you can contact us.

    • Related Articles

    • 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 ...
    • How to modify the PHP version

      If the server where your hosting is located is compatible with the service, you can follow the instructions below to modify the PHP version and assign the desired version to work with. Keep in mind that PHP versions without official support (EOL) are ...
    • What is PHP Legacy and how does it affect your hosting at cdmon

      Many websites run on PHP, whether they use a CMS such as WordPress, Prestashop, Joomla or Moodle, or whether they are custom-developed. If your website generates dynamic content (for example, loads products, processes forms or displays changing ...
    • How to enable developer hosting

      The hosting for developers is a functionality that allows you to install essential tools for the development of web applications, such as the terminal client PHP (version 8.3), Composer, wp-cli, and the customers of GIT and SVN. Important: If you ...
    • How to manage our web hosting

      With the "Control Panel" of the web hosting, you can manage your hosting comfortably. The panel is made up of a section with hosting information and different sections with tools. To access the management panel of the hosting, in the "Basic list of ...