wp_cache_flush

Removes all cache items.

Description

wp_cache_flush( (null) $group = null ); 

Parameters (1)

0. $group — Optional. (null) => null
The group.

Usage

  1. if ( !function_exists( 'wp_cache_flush' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/backpress/functions.wp-object-cache.php'; 
  3.  
  4. // The group. 
  5. $group = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wp_cache_flush($group); 
  9.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/backpress/functions.wp-object-cache.php  
  1. function wp_cache_flush( $group = null ) { 
  2. // WP does not support group flushing 
  3. global $wp_object_cache; 
  4.  
  5. return $wp_object_cache->flush( $group );