bp_friends_delete_cached_friendships_on_friendship_save( BP_Friends_Friendship $friendship )

Delete individual friendships from the cache when they are changed.


Parameters Parameters

$friendship

(BP_Friends_Friendship) (Required) Friendship object.


Source Source

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

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


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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