1. 首页
  2. WordPress 函数手册

clean_post_cache()

clean_post_cache( int|WP_Post $post )

将清除缓存中的邮件。
Will clean the post in the cache.

目录锚点:#说明#参数#返回#源码


说明(Description)

清除意味着从邮件缓存中删除。将调用以清除与post ID关联的术语对象缓存。

如果$wp_suspend_cache_invalization不为空,则不运行此函数。请参阅wp_suspend_cache_invalization()。


参数(Parameters)

参数 类型 必填 说明
$post (int | WP_Post) 必需 要从缓存中删除的Post ID或Post对象。

返回(Return)

无返回值


源码(Source)


更新版本 源码位置 使用 被使用
2.0.0 wp-includes/post.php:6591 14 7

clean_post_cache() 为WP2原创文章,链接:https://www.wp2.cn/functions/clean_post_cache-2/