update_site_cache( array $sites )
Updates sites in cache.
Parameters
- $sites
-
(Required) Array of site objects.
Source
File: wp-includes/ms-blogs.php
function update_site_cache( $sites ) {
if ( ! $sites ) {
return;
}
foreach ( $sites as $site ) {
wp_cache_add( $site->blog_id, $site, 'sites' );
wp_cache_add( $site->blog_id . 'short', $site, 'blog-details' );
}
}
Changelog
Version | Description |
---|---|
WP-4.6.0 | Introduced. |