clear_global_post_cache

函数
clear_global_post_cache ( $post_id )
参数
  • (int) $post_id Post ID.
    Required:
相关
  • clean_post_cache()
定义位置
相关方法
clean_post_cacheclean_blog_cacheclean_page_cacheclean_user_cacheclean_term_cache
引入
-
弃用
3.0.0

clear_global_post_cache: 这个函数清除了全局文章缓存。全局文章缓存是一个存储当前文章数据的缓存: 当这个函数被调用时,它清除了当前文章数据的缓存。

清除全局文章缓存的函数已经弃用。

function clear_global_post_cache( $post_id ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'clean_post_cache()' );
}

常见问题

FAQs
查看更多 >