WordPress开发者和主题制作者的搜索引擎



clean_site_details_cache ›

Since4.7.4
已弃用n/a
clean_site_details_cache ( $site_id = 0 )
参数:
  • (int) $site_id Optional. Site ID. Default is the current site ID.
    Required: No
    默认:
定义在:
文档:

Cleans the site details cache for a site.



源码

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