bp_groups_clear_user_group_cache_on_membership_save( BP_Groups_Member $member )
Clear caches on membership save.
Description
Parameters
- $member
-
(Required) BP Groups Member instance.
Source
File: bp-groups/bp-groups-cache.php
function bp_groups_clear_user_group_cache_on_membership_save( BP_Groups_Member $member ) { wp_cache_delete( $member->user_id, 'bp_groups_memberships_for_user' ); wp_cache_delete( $member->id, 'bp_groups_memberships' ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.6.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.