bp_document_clear_document_user_object_cache( object $document )
Clear a user’s cached document count.
Description
Parameters
- $document
-
(Required) Document object item.
Source
File: bp-document/bp-document-cache.php
function bp_document_clear_document_user_object_cache( $document ) { $user_id = ! empty( $document->user_id ) ? $document->user_id : false; if ( $user_id ) { wp_cache_delete( 'bp_total_document_for_user_' . $user_id, 'bp' ); } }
Changelog
Version | Description |
---|---|
BuddyBoss 1.4.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.