bp_friends_delete_cached_friendships_on_friendship_save( BP_Friends_Friendship $friendship )
Delete individual friendships from the cache when they are changed.
Description
Parameters
- $friendship
-
(Required) Friendship object.
Source
File: bp-friends/bp-friends-cache.php
138 139 140 141 | function bp_friends_delete_cached_friendships_on_friendship_save( $friendship ) { bp_core_delete_incremented_cache( $friendship ->friend_user_id . ':' . $friendship ->initiator_user_id, 'bp_friends' ); bp_core_delete_incremented_cache( $friendship ->initiator_user_id . ':' . $friendship ->friend_user_id, 'bp_friends' ); } |
Changelog
Version | Description |
---|---|
BuddyPress 3.0.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.