wp_cache_flush

Removes all cache items.

Description

wp_cache_flush(); 

Usage

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

Defined (1)

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

/wp-includes/cache.php  
  1. function wp_cache_flush() { 
  2. global $wp_object_cache; 
  3.  
  4. return $wp_object_cache->flush();