[wp-trac] [WordPress Trac] #27122: Optimization for PHP FPM

WordPress Trac noreply at wordpress.org
Fri Feb 14 06:43:48 UTC 2014


#27122: Optimization for PHP FPM
-------------------------+------------------------------
 Reporter:  dunglas      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  performance
-------------------------+------------------------------

Comment (by Denis-de-Bernardy):

 The reason that function is on the shutdown hook was that (in prior PHP
 versions at least) PHP would trash the various WP globals prior to calling
 output buffer-related callback functions.

 I'd advise to check if, with this function on the shutdown hook at
 priority 10, you can still see e.g. `$wpdb` at priority 11. If not, adding
 the call will potentially break plugins that hook after it.

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


More information about the wp-trac mailing list