Changeset 1238 for trunk/bp-friends.php
- Timestamp:
- 03/19/2009 01:35:32 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-friends.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends.php
r1227 r1238 619 619 add_action( 'delete_user', 'friends_remove_data', 1 ); 620 620 621 function friends_clear_friend_object_cache( $friendship_id ) { 622 if ( !$friendship = new BP_Friends_Friendship( $friendship_id ) ) 623 return false; 624 625 wp_cache_delete( 'friends_friend_ids_' . $friendship->initiator_user_id, 'bp' ); 626 wp_cache_delete( 'friends_friend_ids_' . $friendship->friend_user_id, 'bp' ); 627 wp_cache_delete( 'popular_users', 'bp' ); 628 } 629 630 // List actions to clear object caches on 631 add_action( 'friends_friendship_accepted', 'friends_clear_friend_object_cache' ); 632 add_action( 'friends_friendship_deleted', 'friends_clear_friend_object_cache' ); 633 621 634 // List actions to clear super cached pages on, if super cache is installed 622 635 add_action( 'friends_friendship_rejected', 'bp_core_clear_cache' );
Note: See TracChangeset
for help on using the changeset viewer.