clean_site_details_cache
Cleans the site details cache for a site.
Description
clean_site_details_cache( (int) $site_id = 0 );
Parameters (1)
- 0. $site_id — Optional. (int)
- Site ID. Default is the current site ID.
Usage
if ( !function_exists( 'clean_site_details_cache' ) ) { require_once ABSPATH . WPINC . '/ms-blogs.php'; } // Optional. Site ID. Default is the current site ID. $site_id = -1; // NOTICE! Understand what this does before running. $result = clean_site_details_cache($site_id);
Defined (1)
The function is defined in the following location(s).
- /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' );
- }