clear_global_post_cache

Deprecated functionality to clear the global post cache.

Description

clear_global_post_cache( (int) $post_id ); 

Parameters (1)

0. $post_id (int)
The post id.

Usage

  1. if ( !function_exists( 'clear_global_post_cache' ) ) { 
  2. require_once ABSPATH . WPINC . '/ms-deprecated.php'; 
  3.  
  4. // The post id. 
  5. $post_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = clear_global_post_cache($post_id); 
  9.  

Defined (1)

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

/wp-includes/ms-deprecated.php  
  1. function clear_global_post_cache( $post_id ) { 
  2. _deprecated_function( __FUNCTION__, '3.0.0', 'clean_post_cache()' );