bp_activity_follow_clear_user_object_cache( int $user_id )
Clear cached data for deleted users.
Description
Parameters
- $user_id
-
(Required) ID of the user.
Source
File: bp-activity/bp-activity-cache.php
function bp_activity_follow_clear_user_object_cache( $user_id ) {
wp_cache_delete( 'bp_total_follower_for_user_' . $user_id, 'bp' );
wp_cache_delete( 'bp_total_following_for_user_' . $user_id, 'bp' );
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.1.7 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.