clean_page_cache() - WordPress 函数参考中文文档

返回介绍

clean_page_cache()

发布于 2017-09-10 字数1300 浏览 975 评论 0

Warning: This function has been deprecated. Use clean_post_cache() instead.

clean_page_cache( int $id )

Will clean the page in the cache.


描述

Clean (read: delete) page from cache that matches $id. Will also clean cache associated with ‘all_page_ids’ and ‘get_pages’.


参数

$id

(int)
(Required)
Page ID to clean


源代码

File: wp-includes/deprecated.php

function clean_page_cache( $id ) {
	_deprecated_function( __FUNCTION__, '3.4.0', 'clean_post_cache()' );

	clean_post_cache( $id );
}

更新日志

Version 描述
3.4.0 Use clean_post_cache
2.0.0 Introduced.

相关函数

Uses

  • wp-includes/functions.php:
    _deprecated_function()
  • wp-includes/post.php:
    clean_post_cache()

User Contributed Notes

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!