We use cookies
We use cookies to optimize our website. By continuing to browse the site, you agree to our use of cookies.
New design
Control panel
  • Русский
  • Українська
  • English
  • UAH
  • USD
  • RUB
  • EUR
  • 0-800-307-307 Hotline
  • +38 (044) 392-74-33 Kiev
  • +38 (057) 728-39-00 Kharkiv
  • +38 (056) 794-38-31 Dnipro
  • +38 (032) 229-58-93 Lviv
  • +38 (048) 738-57-70 Odessa
  • +38(093) 170-15-42  Life
  • +38 (067) 400-88-44 Kievstar
  • +1(888)393-24-51  USA, Toll free
  • +44(131)507-01-14  Great Britain
  • +7 (499) 348-28-61 Moscow

2.13.1.1.9. Increased load from wp-cron.php

wp-cron.php - built-in WordPress task scheduler. It can be used to publish deferred posts, check for updates of installed themes and plugins, send notifications and perform other time-dependent operations. Some of these tasks can be quite resource intensive and can be a source of increased load, in case of too frequent start-up (the frequency of start-ups can be found, for example, from access logs site by filtering records by wp-cron.php). Configuring the launch of the built-in scheduler via croninstead of launching by means of the site itself.

To reconfigure the launch of the WordPress scheduler:

  1. Discover config file site wp-config.php in the built-in editor file manager or any FTP client.
  2. Add at the beginning of the file (right after <?php) a line like this:
    define('DISABLE_WP_CRON', true);
  3. Save your changes.
  4. Add a cron task with such content (substituting instead example.com your website address):
    /usr/bin/wget -t 1 -O - 'http://exemple.com/wp-cron.php?doing_wp_cron' >/dev/null 2>&1

    It is recommended to set the startup interval within the range from 15 minutes to 1 hour.

  5. Check the work of the scheduler by scheduling the publication of a record, for example, in 1-2 hours from the current time. If the post is published, then everything is configured correctly.