groups_clear_group_user_object_cache( int $group_id, int $user_id )

Clear a user’s cached group count.


Parameters Parameters

$group_id

(int) (Required) The group ID. Not used in this function.

$user_id

(int) (Required) The user ID.


Source 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' );
}


Top ↑

Changelog Changelog

Changelog
Version Description
1.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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