[wp-trac] [WordPress Trac] #54668: Non blocking wp-cron.php with LSAPI

WordPress Trac noreply at wordpress.org
Tue Jul 5 03:03:27 UTC 2022


#54668: Non blocking wp-cron.php with LSAPI
-------------------------+--------------------------
 Reporter:  maximej      |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  6.1
Component:  Cron API     |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  performance
-------------------------+--------------------------

Comment (by peterwilsoncc):

 > I get that (`fastcgi_finish_request` prevents setting further headers
 but) no non caching headers are sent afterwards by default.

 Sorry, I missed this question earlier today.

 The idea behind placing the headers inside the `fastcgi_finish_request`
 was to ensure that any full page caching plugins retained control of how
 to manage the wp-cron cache. Most of them do a check for `DOING_CRON ===
 true` and send out their own headers.

 To avoid repeating code multiple times, I think the change you have in
 your pull request is for the best. Caching plugins calling `header()` with
 expiry headers later in the process will replace the existing headers.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54668#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list