bp_core_clear_user_object_cache( string $user_id )
Clear all cached objects for a user, or those that a user is part of.
Description
Parameters
- $user_id
-
(Required) User ID to delete cache for.
Source
File: bp-core/bp-core-cache.php
function bp_core_clear_user_object_cache( $user_id ) { wp_cache_delete( 'bp_user_' . $user_id, 'bp' ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.0.0 | 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.