[wp-trac] [WordPress Trac] #20537: Don't spawn cron requests for suspended blogs
WordPress Trac
noreply at wordpress.org
Tue Feb 2 02:59:36 UTC 2021
#20537: Don't spawn cron requests for suspended blogs
--------------------------+-------------------------
Reporter: ryan | Owner: jeremyfelt
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 5.7
Component: Cron API | Version: 3.3.1
Severity: normal | Resolution:
Keywords: | Focuses: multisite
--------------------------+-------------------------
Changes (by peterwilsoncc):
* keywords: has-patch needs-testing needs-refresh =>
Comment:
For #24160, I'm moving alternative wp-cron to run on the `wp_loaded` hook.
Having reviewed what happens on multisite for regular cron, hitting
`/site-name/wp-cron.php` already shuts down prior to jobs running unless
the user is logged in. For loopback requests this is not the case.
Plugins can use the `ms_site_check` filter to prevent suspended blogs from
shutting down, in which case both standard and alternative cron will
continue to fire.
Given the option exists (and I am unsure if it did when this ticket was
last discussed) I'm moving the hook without considering the edge case
above.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/20537#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list