Uses
Uses | Description |
---|---|
wp-includes/cache.php: wp_cache_delete() | Removes the cache contents matching key and group. |
wp-includes/load.php: get_current_blog_id() | Retrieve the current site ID. |
Cleans the site details cache for a site.
(int) (Optional) Site ID. Default is the current site ID.
File: wp-includes/ms-blogs.php
function clean_site_details_cache( $site_id = 0 ) { $site_id = (int) $site_id; if ( ! $site_id ) { $site_id = get_current_blog_id(); } wp_cache_delete( $site_id, 'site-details' ); wp_cache_delete( $site_id, 'blog-details' ); }
Version | Description |
---|---|
4.7.4 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/clean_site_details_cache