用于清除全局帖子缓存的不推荐使用的功能。
原型
clear_global_post_cache( int $post_id )
参数
$post_id
(int)
(Required)
帖子ID。
源文件
路径:wp-includes/ms-deprecated.php
<?php
...
function clear_global_post_cache( $post_id ) {
_deprecated_function( __FUNCTION__, '3.0.0', 'clean_post_cache()' );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/clear_global_post_cache/