clean_site_details_cache

The timeline below displays how wordpress function clean_site_details_cache has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 4.8

/**
 * Cleans the site details cache for a site.
 *
 * @since 4.7.4
 *
 * @param int $site_id Optional. Site ID. Default is the current site ID.
 */
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');
}