bp_document_clear_folder_group_object_cache( object $folder )

Clear a group’s cached folder count.

Description

Parameters

$folder

(Required) Folder object item.

Source

File: bp-document/bp-document-cache.php

function bp_document_clear_folder_group_object_cache( $folder ) {
	$group_id = ! empty( $folder->group_id ) ? $folder->group_id : false;

	if ( $group_id ) {
		wp_cache_delete( 'bp_total_folder_for_group_' . $group_id, 'bp' );
	}
}

Changelog

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.