[wp-trac] [WordPress Trac] #49327: Add a function that identifies whether WordPress is doing a cron
WordPress Trac
noreply at wordpress.org
Thu Jan 30 08:43:05 UTC 2020
#49327: Add a function that identifies whether WordPress is doing a cron
-------------------------+-----------------------------
Reporter: pikamander2 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
Ideally, there would be three possible return values:
1. A value that indicates that no cron is being performed
2. A value that indicates that a WP_CRON is being performed
3. A value that indicates that a cron is being performed via the CLI
This would mostly be helpful for logging purposes. For example, some hosts
use a setup in which crons are run by a different user than normal
(apache, root, www-data, etc), which can affect things like your
environment variables and file permissions.
Even though it's not strictly necessary, it would be helpful to have it as
an option.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49327>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list