Changeset 11949
- Timestamp:
- 04/04/2018 10:23:22 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-friends/bp-friends-cache.php
r11865 r11949 52 52 // Clear the friendship object cache. 53 53 wp_cache_delete( $friendship_id, 'bp_friends_friendships' ); 54 55 // Clear incremented cache. 56 $friendship = new stdClass; 57 $friendship->initiator_user_id = $initiator_user_id; 58 $friendship->friend_user_id = $friend_user_id; 59 bp_friends_delete_cached_friendships_on_friendship_save( $friendship ); 54 60 } 55 61 add_action( 'friends_friendship_requested', 'bp_friends_clear_bp_friends_friendships_cache', 10, 3 ); … … 72 78 // Clear the friendship object cache. 73 79 wp_cache_delete( $friendship_id, 'bp_friends_friendships' ); 80 81 // Clear incremented cache. 82 bp_friends_delete_cached_friendships_on_friendship_save( $friendship ); 74 83 } 75 84 add_action( 'friends_friendship_withdrawn', 'bp_friends_clear_bp_friends_friendships_cache_remove', 10, 2 );
Note: See TracChangeset
for help on using the changeset viewer.