[wp-trac] [WordPress Trac] #55802: Store main site of network in network options

WordPress Trac noreply at wordpress.org
Tue Sep 20 14:24:22 UTC 2022


#55802: Store main site of network in network options
--------------------------------------+------------------------------------
 Reporter:  spacedmonkey              |       Owner:  spacedmonkey
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.1
Component:  Networks and Sites        |     Version:  4.9
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  multisite,
                                      |  performance
--------------------------------------+------------------------------------
Changes (by spacedmonkey):

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


Comment:

 In [changeset:"54256" 54256]:
 {{{
 #!CommitTicketReference repository="" revision="54256"
 Networks and Sites: Store main site id of a network in network options.

 Instead of caching main site id an object cache, store main site id on a
 network options. This results in less database queries on sites without
 persistent object caching.

 Props spacedmonkey, johnjamesjacoby, peterwilsoncc, desrosj.
 Fixes #55802.
 }}}

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


More information about the wp-trac mailing list