[wp-trac] [WordPress Trac] #50784: Stop using `preg_match()` in `wp_opcache_invalidate()`

WordPress Trac noreply at wordpress.org
Tue Jul 28 08:07:20 UTC 2020


#50784: Stop using `preg_match()` in `wp_opcache_invalidate()`
------------------------------+---------------------------
 Reporter:  mikeschroder      |       Owner:  mikeschroder
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  5.5
Component:  Upgrade/Install   |     Version:  trunk
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+---------------------------
Changes (by mikeschroder):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48657" 48657]:
 {{{
 #!CommitTicketReference repository="" revision="48657"
 Upgrade/Install: Improve `wp_opcache_invalidate()` performance.

 Changes from using `preg_match()` based `.php` extension checking to using
 `substr()` in `wp_opcache_invalidate()`.

 Props jnylen0, aaroncampbell, SergeyBiryukov, desrosj, mikeschroder.
 Fixes #50784.
 }}}

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


More information about the wp-trac mailing list