函数原型
clean_site_details_cache( int $site_id )
函数描述
Cleans the site details cache for a site.
是否弃用
未弃用
函数参数
-
$site_id
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. |

