Warning: This function has been deprecated. Use clean_post_cache() instead.
clean_page_cache() WordPress Function
The clean_page_cache() function is a WordPress core function that clears the page cache. This function is called when a post is updated or a comment is made.
clean_page_cache( int $id ) #
Will clean the page in the cache.
Description
Clean (read: delete) page from cache that matches $id. Will also clean cache associated with ‘all_page_ids’ and ‘get_pages’.
See also
Parameters
- $id
(int)(Required)Page ID to clean
Source
File: wp-includes/deprecated.php
function clean_page_cache( $id ) {
_deprecated_function( __FUNCTION__, '3.4.0', 'clean_post_cache()' );
clean_post_cache( $id );
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 3.4.0 | Use clean_post_cache |
| 2.0.0 | Introduced. |