[wp-trac] [WordPress Trac] #47396: Cron: Add no cache headers before calling `fastcgi_finish_request()`

WordPress Trac noreply at wordpress.org
Sat Jun 22 11:18:28 UTC 2019


#47396: Cron: Add no cache headers before calling `fastcgi_finish_request()`
--------------------------------------+---------------------
 Reporter:  peterwilsoncc             |       Owner:  (none)
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  5.3
Component:  Cron API                  |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+---------------------
Changes (by peterwilsoncc):

 * keywords:  good-first-bug has-patch needs-refresh => good-first-bug has-
     patch
 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 Closed in [changeset:"45560" 45560] but yours truly made a typo and left
 the hash of the ticket number. @kingkero your props will still be recorded
 once 5.3 is released.

 In [changeset:"45560" 45560]:
 {{{
 #!CommitTicketReference repository="" revision="45560"
 Cron API: Prevent caching of WP Cron requests.

 Add `Cache-Control` and `Expires` HTTP headers to prevent caching of
 requests to WP Cron on systems supporting fastcgi_finish_request().

 The fastcgi_finish_request() call prevents the setting of further HTTP
 headers by caching plugins subsequently loaded.

 Props kingkero.
 Fixes 47396.
 }}}

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


More information about the wp-trac mailing list