[wp-trac] [WordPress Trac] #44345: Error in handbook
WordPress Trac
noreply at wordpress.org
Thu Jul 18 06:09:38 UTC 2019
#44345: Error in handbook
--------------------------+---------------------
Reporter: Old_fart | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Cron API | Version: 4.9.6
Severity: normal | Resolution: fixed
Keywords: | Focuses: docs
--------------------------+---------------------
Changes (by garrett-eclipse):
* status: new => closed
* focuses: => docs
* component: General => Cron API
* milestone: Awaiting Review =>
* keywords: cron =>
* resolution: => fixed
Comment:
Hi @Old_fart , Thank you for the report.
Checking on this the page is now moved here -
https://developer.wordpress.org/plugins/cron/hooking-wp-cron-into-the-
system-task-scheduler/
1 - This seems to be correct now in the current handbook;
> If a command should be run regardless of one of the time sections an
asterisk (*) should be used. 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
2 - It appears the documentation on this has also been updated but rather
than using `-q -O` and `>/dev/null 2>&1` it recommends using the
`--delete-after` option.
> Many servers have wget installed and this is an easy tool to call the
WordPress Cron script.
> wget --delete-after http://YOUR_SITE_URL/wp-cron.php
> Note: without –-delete-after option, wget would save the output of the
HTTP GET request.
>
> A daily call to your site’s WordPress Cron that triggers at midnight
every night could look similar to:
> 0 0 * * * wget --delete-after http://YOUR_SITE_URL/wp-cron.php
* To my understanding they achieve the same goal of avoiding the 'flood
[of] system log with useless messages'.
I'm closing as these points appear to have been addressed with the latest
handbook documentation. @Old_fart if I've missed the mark please re-open.
Thanks again for pointing this out.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44345#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list