Changeset 9995 for trunk/src/bp-friends/bp-friends-cache.php
- Timestamp:
- 07/04/2015 10:23:19 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-friends/bp-friends-cache.php
r9819 r9995 18 18 * 19 19 * @param int $friendship_id ID of the friendship whose two members should 20 * have their friends cache busted. 20 * have their friends cache busted. 21 * 22 * @return bool 21 23 */ 22 24 function friends_clear_friend_object_cache( $friendship_id ) { … … 37 39 * @since BuddyPress (2.0.0) 38 40 * 39 * @param int $friend_user_id The user ID not initiating the friendship 41 * @param int $friend_user_id The user ID not initiating the friendship. 40 42 */ 41 43 function bp_friends_clear_request_cache( $friend_user_id ) { … … 50 52 * @since BuddyPress (2.0.0) 51 53 * 52 * @param int $friendship_id The friendship ID53 * @param int $initiator_user_id The user ID initiating the friendship 54 * @param int $friend_user_id The user ID not initiating the friendship54 * @param int $friendship_id The friendship ID. 55 * @param int $initiator_user_id The user ID initiating the friendship. 56 * @param int $friend_user_id The user ID not initiating the friendship. 55 57 */ 56 58 function bp_friends_clear_request_cache_on_save( $friendship_id, $initiator_user_id, $friend_user_id ) { … … 67 69 * @since BuddyPress (2.0.0) 68 70 * 69 * @param int $friendship_id The friendship ID71 * @param int $friendship_id The friendship ID. 70 72 * @param BP_Friends_Friendship $friendship 71 73 */ 72 74 function bp_friends_clear_request_cache_on_remove( $friendship_id, BP_Friends_Friendship $friendship ) { 73 bp_friends_clear_request_cache( $friendship->friend_user_id ); 75 bp_friends_clear_request_cache( $friendship->friend_user_id ); 74 76 } 75 77 add_action( 'friends_friendship_withdrawn', 'bp_friends_clear_request_cache_on_remove', 10, 2 );
Note: See TracChangeset
for help on using the changeset viewer.