Changeset 5987 for trunk/bp-core/bp-core-cache.php
- Timestamp:
- 04/13/2012 04:31:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-cache.php
r5986 r5987 44 44 wp_cache_delete( 'bp_user_' . $user_id, 'bp' ); 45 45 } 46 47 /** 48 * Clears member count caches and transients 49 */ 50 function bp_core_clear_member_count_caches() { 51 wp_cache_delete( 'bp_total_member_count', 'bp' ); 52 delete_transient( 'bp_active_member_count' ); 53 } 54 add_action( 'bp_core_activated_user', 'bp_core_clear_member_count_caches' ); 55 add_action( 'bp_core_process_spammer_status', 'bp_core_clear_member_count_caches' ); 56 add_action( 'bp_core_deleted_account', 'bp_core_clear_member_count_caches' ); 46 57 47 58 /**
Note: See TracChangeset
for help on using the changeset viewer.