Changeset 11123 for trunk/src/bp-friends/bp-friends-cache.php
- Timestamp:
- 09/20/2016 02:42:10 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-friends/bp-friends-cache.php
r11122 r11123 46 46 */ 47 47 function bp_friends_clear_bp_friends_friendships_cache( $friendship_id, $initiator_user_id, $friend_user_id ) { 48 // Clear friendship ID cache for each user. 49 wp_cache_delete( $initiator_user_id, 'bp_friends_friendships_for_user' ); 50 wp_cache_delete( $friend_user_id, 'bp_friends_friendships_for_user' ); 51 48 52 // Clear the friendship object cache. 49 53 wp_cache_delete( $friendship_id, 'bp_friends_friendships' ); … … 62 66 */ 63 67 function bp_friends_clear_bp_friends_friendships_cache_remove( $friendship_id, BP_Friends_Friendship $friendship ) { 68 // Clear friendship ID cache for each user. 69 wp_cache_delete( $friendship->initiator_user_id, 'bp_friends_friendships_for_user' ); 70 wp_cache_delete( $friendship->friend_user_id, 'bp_friends_friendships_for_user' ); 71 64 72 // Clear the friendship object cache. 65 73 wp_cache_delete( $friendship_id, 'bp_friends_friendships' );
Note: See TracChangeset
for help on using the changeset viewer.