2.14.1.1.9. Increased load from wp-cron.php

wp-cron.php — a task scheduler built into WordPress. It can be used to publish scheduled posts, check for updates to installed themes and plugins, send notifications, and perform other time-dependent operations. Some of these tasks can be quite resource-intensive and cause high load if they are run too often (you can find out how often they are run, for example, from site access logs, filtering entries by wp-cron.php).

To fix this, you can try setting up the built-in scheduler to run via cron instead of running it from the site itself:

  1. Open the configuration file of the site wp-config.php in file manager or any [hosting:files:ftp:clients|FTP client]] editor.
  2. At the beginning of the file (right after <?php), add the following line and save the changes:
    define('DISABLE_WP_CRON', true);
  3. Add cron task with the following command (instead of example.com, use your site address; the recommended interval is between 15 minutes and 1 hour):
    /usr/bin/wget -t 1 -O - 'https://example.com/wp-cron.php?doing_wp_cron' >/dev/null 2>&1
  4. Check the scheduler operation by scheduling the publication of any post (for example, in 1-2 hours from the current time). If the post is published, everything is set up correctly.
Content

    (5)