[wp-trac] [WordPress Trac] #36935: Implement lazy-loading blog details in `WP_Site`

WordPress Trac noreply at wordpress.org
Thu Jun 9 22:07:52 UTC 2016


#36935: Implement lazy-loading blog details in `WP_Site`
-------------------------------------+------------------------
 Reporter:  flixos90                 |       Owner:  flixos90
     Type:  enhancement              |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.6
Component:  Networks and Sites       |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  multisite
-------------------------------------+------------------------

Comment (by flixos90):

 The patch [36935.3.diff] has the following updates:

 * introduce `site-details` cache group for `WP_Site::get_details()`
 * thus remove `blog-details` cache group for that functionality (it's
 still used with `get_id_from_blogname_*` and `*_user_count` keys
 * add the new `site-details` cache group to global groups for cache
 * add the new group to and remove the old groups from `clean_blog_cache()`
 * really make 100% sure that `get_blog_details()` returns a `WP_Site`
 object and never a plain object
 * fix a possible bug (related to #36717) in `update_blog_details()` by
 using the `to_array()` method of `WP_Site` instead of `get_object_vars()`

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


More information about the wp-trac mailing list