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’.

Top ↑

See also


Top ↑

Parameters

$id

(int)(Required)Page ID to clean


Top ↑

Source

File: wp-includes/deprecated.php

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

	clean_post_cache( $id );
}


Top ↑

Changelog

Changelog
VersionDescription
3.4.0Use clean_post_cache
2.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More