clean_page_cache

Will clean the page in the cache.

Description

clean_page_cache( (int) $id ); 

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

Parameters (1)

0. $id (int)
Page ID to clean

Usage

  1. if ( !function_exists( 'clean_page_cache' ) ) { 
  2. require_once ABSPATH . WPINC . '/deprecated.php'; 
  3.  
  4. // Page ID to clean 
  5. $id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = clean_page_cache($id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/deprecated.php  
  1. function clean_page_cache( $id ) { 
  2. _deprecated_function( __FUNCTION__, '3.4.0', 'clean_post_cache()' ); 
  3.  
  4. clean_post_cache( $id );