[wp-trac] [WordPress Trac] #36935: Implement lazy-loading blog details in `WP_Site`
WordPress Trac
noreply at wordpress.org
Wed Jun 29 21:21:18 UTC 2016
#36935: Implement lazy-loading blog details in `WP_Site`
---------------------------------------------+-------------------------
Reporter: flixos90 | Owner: jeremyfelt
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.6
Component: Networks and Sites | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch commit needs-dev-note | Focuses: multisite
---------------------------------------------+-------------------------
Comment (by jeremyfelt):
Replying to [comment:28 spacedmonkey]:
> I just notice that the new cache group isnt cleared in clean_blog_cache.
I think it is:
{{{
function clean_blog_cache( $blog ) {
$blog_id = $blog->blog_id;
$domain_path_key = md5( $blog->domain . $blog->path );
wp_cache_delete( $blog_id, 'sites' );
wp_cache_delete( $blog_id, 'site-details' );
wp_cache_delete( $blog_id , 'blog-details' );
...
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36935#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list