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

      Advanced hosting tools is the Configure PHP option, where you can modify different PHP policies to adjust your hosting to the requirements requested in some CMS applications. These values have a different scale depending on the plan you have ...
    • 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 ...
    • How to create a GIT repository

      Here's step-by-step how to create and manage a GIT repository from your dashboard. This process is simple and straightforward, allowing you to set up a development environment quickly. Access to hosting Developer hosting Activate developer hosting ...