bp_core_reset_incrementor

Reset a group-specific cache incrementor.

Description

bp_core_reset_incrementor( (string) $group ); 

Call this function when all incrementor-based caches associated with a given cache group should be invalidated.

Parameters (1)

0. $group (string)
Cache group. Eg bp_activity..

Usage

  1. if ( !function_exists( 'bp_core_reset_incrementor' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-cache.php'; 
  3.  
  4. // Cache group. Eg 'bp_activity'. 
  5. $group = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_core_reset_incrementor($group); 
  9.  

Defined (1)

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

/bp-core/bp-core-cache.php  
  1. function bp_core_reset_incrementor( $group ) { 
  2. return wp_cache_delete( 'incrementor', $group );