[wp-trac] [WordPress Trac] #61782: Memoize wp_get_wp_version

WordPress Trac noreply at wordpress.org
Sat Aug 3 23:52:51 UTC 2024


#61782: Memoize wp_get_wp_version
------------------------------------+-----------------------------
 Reporter:  Cybr                    |       Owner:  SergeyBiryukov
     Type:  defect (bug)            |      Status:  reopened
 Priority:  normal                  |   Milestone:  6.7
Component:  General                 |     Version:  trunk
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+-----------------------------

Comment (by peterwilsoncc):

 My inclination is to revert [58827].

 While 10,000 iterations shows a drop from 0.1000s to 0.0006s in execution
 time, it's more likely the function will only be called a few times in the
 typical execution of a WordPress request.

 Given the risk of the incorrect version being reported pre- and post-
 upgrade a more real-world example of the improvement is needed.

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


More information about the wp-trac mailing list