bp_document_clear_document_group_object_cache( object $document )
Clear a group’s cached document count.
Description
Parameters
- $document
-
(Required) Document object item.
Source
File: bp-document/bp-document-cache.php
function bp_document_clear_document_group_object_cache( $document ) { $group_id = ! empty( $document->group_id ) ? $document->group_id : false; if ( $group_id ) { wp_cache_delete( 'bp_total_document_for_group_' . $group_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.