wp_cache_close

Closes the cache.

Description

wp_cache_close(); 

This function has ceased to do anything since WordPress 2.5. The functionality was removed along with the rest of the persistent cache.

This does not mean that plugins can't implement this function when they need to make sure that the cache is cleaned up after WordPress no longer needs it.


Usage

  1. if ( !function_exists( 'wp_cache_close' ) ) { 
  2. require_once ABSPATH . WPINC . '/cache.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wp_cache_close(); 
  7.  

Defined (1)

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

/wp-includes/cache.php  
  1. function wp_cache_close() { 
  2. return true;