[wp-trac] [WordPress Trac] #46465: Implement logic that performs PHP code after connection with client is closed

WordPress Trac noreply at wordpress.org
Tue Jan 12 06:07:51 UTC 2021


#46465: Implement logic that performs PHP code after connection with client is
closed
-------------------------+--------------------------
 Reporter:  umchal       |       Owner:  (none)
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  General      |     Version:
 Severity:  normal       |  Resolution:  wontfix
 Keywords:               |     Focuses:  performance
-------------------------+--------------------------
Changes (by peterwilsoncc):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 Hi @umchal and welcome to trac!

 This ticket was discussed during a triage session today.

 It was decided to close this ticket off and leave changes similar to your
 example code as plugin territory. While in many cases considering the site
 "sent" once the shutdown hook starts firing is safe, it's not guaranteed.

 In `wp-cron.php` WordPress uses `fastcgi_finish_request()`
 [https://github.com/WordPress/wordpress-
 develop/blob/f51a70931c4ae9050f5227314cdab4804750c136/src/wp-
 cron.php#L22-L29 when possible on cron requests], you may wish to look at
 that with regard to a plugin.

 I'm going to close this off as `wontfix`, which is the term used on trac
 for tickets that won't have action taken on them.

 Thanks

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


More information about the wp-trac mailing list