bp_groups_clear_group_members_caches( BP_Groups_Group $group_obj, array $user_ids )

Clears caches for all members in a group when a group is deleted.


Parameters Parameters

$group_obj

(BP_Groups_Group) (Required) Group object.

$user_ids

(array) (Required) User IDs who were in this group.


Source Source

File: bp-groups/bp-groups-cache.php

function bp_groups_clear_group_members_caches( $group_obj, $user_ids ) {
	// Clears the 'total groups' cache for each member in a group.
	foreach ( (array) $user_ids as $user_id )
		groups_clear_group_user_object_cache( $group_obj->id, $user_id );
}


Top ↑

Changelog Changelog

Changelog
Version Description
1.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.