Changeset 6611 for trunk/bp-groups/bp-groups-cache.php
- Timestamp:
- 12/10/2012 03:10:00 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-cache.php
r6342 r6611 49 49 add_action( 'groups_group_avatar_updated', 'groups_clear_group_object_cache' ); 50 50 add_action( 'groups_create_group_step_complete', 'groups_clear_group_object_cache' ); 51 52 /** 53 * Bust group caches when editing or deleting 54 * 55 * @since BuddyPress (1.7) 56 * @param int $group_id The group being edited 57 */ 58 function bp_groups_delete_group_cache( $group_id = 0 ) { 59 wp_cache_delete( 'bp_groups_group_' . $group_id . '_load_users' ); 60 wp_cache_delete( 'bp_groups_group_' . $group_id . '_noload_users' ); 61 } 62 add_action( 'groups_delete_group', 'bp_groups_delete_group_cache' ); 63 add_action( 'groups_update_group', 'bp_groups_delete_group_cache' ); 64 add_action( 'groups_details_updated', 'bp_groups_delete_group_cache' ); 65 add_action( 'groups_settings_updated', 'bp_groups_delete_group_cache' ); 51 66 52 67 /**
Note: See TracChangeset
for help on using the changeset viewer.