[wp-trac] [WordPress Trac] #56639: Avoid excessive `notoptions` lookups

WordPress Trac noreply at wordpress.org
Wed Sep 28 13:42:28 UTC 2022


#56639: Avoid excessive `notoptions` lookups
--------------------------+-----------------------------
 Reporter:  tillkruess    |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  6.1
Component:  Cache API     |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  performance
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"54345" 54345]:
 {{{
 #!CommitTicketReference repository="" revision="54345"
 Options, Meta APIs: Prevent excessive `notoptions` key lookups.

 When the `notoptions` key does not exist in a persistent object cache, it
 was requested hundreds of times until the first not-option is written.

 This commit improves performance by setting the value to an empty array to
 prevent non-existent `notoptions` key from triggering multiple key
 lookups.

 Follow-up to [4855], [14515].

 Props tillkruess, dd32, spacedmonkey.
 Fixes #56639.
 }}}

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


More information about the wp-trac mailing list