groups_clear_group_user_object_cache( int $group_id, int $user_id )
Clear a user’s cached group count.
Description
Parameters
- $group_id
-
(Required) The group ID. Not used in this function.
- $user_id
-
(Required) The user ID.
Source
File: bp-groups/bp-groups-cache.php
function groups_clear_group_user_object_cache( $group_id, $user_id ) { wp_cache_delete( 'bp_total_groups_for_user_' . $user_id, 'bp' ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.2.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.