[wp-trac] [WordPress Trac] #58185: Lazy load site meta

WordPress Trac noreply at wordpress.org
Thu May 11 11:13:25 UTC 2023


#58185: Lazy load site meta
---------------------------------------------+-----------------------------
 Reporter:  spacedmonkey                     |       Owner:  spacedmonkey
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  6.3
Component:  Networks and Sites               |     Version:  5.1
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  multisite,
                                             |  performance
---------------------------------------------+-----------------------------
Changes (by spacedmonkey):

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


Comment:

 In [changeset:"55747" 55747]:
 {{{
 #!CommitTicketReference repository="" revision="55747"
 Networks and Sites: Lazy load site meta.

 In [36566] a framework to lazily load metadata was introduced. This
 supported term and comment meta by default. In this commit, extends
 support for site ( blog ) meta. Site meta is not heavily used by core and
 is used by developers to extend multisite. In this change,
 `_prime_site_caches` and `WP_Site_Query` now call the new function
 `wp_lazyload_site_meta`. The function `wp_lazyload_site_meta` accepts an
 array of ids and adds them to the queue of metadata to be lazily loaded.
 The function `get_blogs_of_user` was updated to now lazily load site meta.

 Follow on from [55671].

 Props spacedmonkey, johnjamesjacoby, peterwilsoncc, mukesh27.
 Fixes #58185.
 }}}

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


More information about the wp-trac mailing list