Changeset 13309 for trunk/src/bp-groups/bp-groups-cache.php
- Timestamp:
- 08/08/2022 09:24:03 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-cache.php
r12429 r13309 250 250 function bp_groups_clear_user_group_cache_on_membership_save( BP_Groups_Member $member ) { 251 251 wp_cache_delete( $member->user_id, 'bp_groups_memberships_for_user' ); 252 wp_cache_delete( $member->id, 'bp_groups_memberships' ); 252 253 if ( ! is_null( $member->id ) ) { 254 wp_cache_delete( $member->id, 'bp_groups_memberships' ); 255 } 253 256 } 254 257 add_action( 'groups_member_before_save', 'bp_groups_clear_user_group_cache_on_membership_save' );
Note: See TracChangeset
for help on using the changeset viewer.