[wp-trac] [WordPress Trac] #44345: Error in handbook

WordPress Trac noreply at wordpress.org
Sun Jun 10 15:53:35 UTC 2018


#44345: Error in handbook
--------------------------+-----------------------------
 Reporter:  Old_fart      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.9.6
 Severity:  normal        |   Keywords:  cron
  Focuses:                |
--------------------------+-----------------------------
 Page: https://developer.wordpress.org/plugins/cron/hooking-into-the-
 system-task-scheduler/

 1.)
 Phrase:
 "For example if you wanted to run a command every 15 minutes regardless of
 the hour, day, or month it would look like:

 15 * * * * command"

 is incorrect. This command will runs once per hour. To run cron every 15
 minutes such cron job should be:

 */15 * * * * command

 2.)
 Offering people to use command in cron:
 wget http://YOUR_SITE_URL/wp-cron.php

 will flood system log with useless messages.
 wget in such use case should run in quiet mode as:

 wget -q -O - http://YOUR_SITE_URL/wp-cron.php >/dev/null 2>&1

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44345>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list