clean_site_details_cache( int $site_id )

In this article

Cleans the site details cache for a site.

Parameters

$site_idintoptional
Site ID. Default is the current site ID.

Source

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' );
}

Changelog

VersionDescription
4.7.4Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.