[wp-trac] [WordPress Trac] #43506: Ensure a network's `notoptions` cache is an array to reduce lookup overhead

WordPress Trac noreply at wordpress.org
Tue Mar 13 15:36:16 UTC 2018


#43506: Ensure a network's `notoptions` cache is an array to reduce lookup overhead
--------------------------------------+------------------------
 Reporter:  flixos90                  |       Owner:  flixos90
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.0
Component:  Options, Meta APIs        |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  multisite
--------------------------------------+------------------------
Changes (by flixos90):

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


Comment:

 In [changeset:"42833"]:
 {{{
 #!CommitTicketReference repository="" revision="42833"
 Multisite: Ensure the `{$network_id}:notoptions` array is set in cache in
 `get_network_option()`.

 Prior to this change, the `{$network_id}:notoptions` cache would only be
 fetched, but not set, unless the actual database lookup would be
 unsuccessful. This enhancement slightly improves performance by preventing
 unnecessary external object cache lookups if one is used.

 Fixes #43506.
 }}}

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


More information about the wp-trac mailing list