WordPress.org

Make WordPress Core

Opened 2 weeks ago

#44345 new defect (bug)

Error in handbook

Reported by: Old_fart Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9.6
Component: General Keywords: cron
Focuses: Cc:

Description

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

Change History (0)

Note: See TracTickets for help on using tickets.