bp_core_clear_member_count_caches

Clear member count caches and transients.

Description

bp_core_clear_member_count_caches(); 

Usage

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

Defined (1)

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

/bp-core/bp-core-cache.php  
  1. function bp_core_clear_member_count_caches() { 
  2. delete_transient( 'bp_active_member_count' );