Changeset 10766 for trunk/src/bp-groups/bp-groups-cache.php
- Timestamp:
- 05/15/2016 02:21:54 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-cache.php
r10454 r10766 212 212 } 213 213 add_action( 'groups_member_after_save', 'groups_clear_group_administrator_cache_on_member_save' ); 214 215 /** 216 * Clear the group type cache for a group. 217 * 218 * Called when group is deleted. 219 * 220 * @since 2.6.0 221 * 222 * @param int $group_id The group ID. 223 */ 224 function groups_clear_group_type_cache( $group_id = 0 ) { 225 wp_cache_delete( $group_id, 'bp_groups_group_type' ); 226 } 227 add_action( 'groups_delete_group', 'groups_clear_group_type_cache' ); 214 228 215 229 /* List actions to clear super cached pages on, if super cache is installed */
Note: See TracChangeset
for help on using the changeset viewer.