friends_clear_friend_object_cache( int $friendship_id )
Clear friends-related cache for members of a specific friendship.
Parameters Parameters
- $friendship_id
-
(int) (Required) ID of the friendship whose two members should have their friends cache busted.
Return Return
(bool)
Source Source
File: bp-friends/bp-friends-cache.php
function friends_clear_friend_object_cache( $friendship_id ) { if ( !$friendship = new BP_Friends_Friendship( $friendship_id ) ) return false; wp_cache_delete( 'friends_friend_ids_' . $friendship->initiator_user_id, 'bp' ); wp_cache_delete( 'friends_friend_ids_' . $friendship->friend_user_id, 'bp' ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |