wpseek.com
WordPress开发者和主题制作者的搜索引擎
update_sitemeta_cache › WordPress Function
Since5.1.0
已弃用n/a
› update_sitemeta_cache ( $site_ids )
| 参数: |
|
| 返回: |
|
| 定义在: |
|
| 文档: |
Updates metadata cache for list of site IDs.
Performs SQL query to retrieve all metadata for the sites matching$site_ids and stores them in the cache.
Subsequent calls to get_site_meta() will not need to query the database.Related Functions: update_postmeta_cache, update_termmeta_cache, update_meta_cache, update_site_cache, update_term_cache
源码
function update_sitemeta_cache( $site_ids ) {
// Ensure this filter is hooked in even if the function is called early.
if ( ! has_filter( 'update_blog_metadata_cache', 'wp_check_site_meta_support_prefilter' ) ) {
add_filter( 'update_blog_metadata_cache', 'wp_check_site_meta_support_prefilter' );
}
return update_meta_cache( 'blog', $site_ids );
}