bp_media_clear_album_group_object_cache( object $album )

Clear a group’s cached album count.

Description

Parameters

$album

(Required) Album object item.

Source

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

function bp_media_clear_album_group_object_cache( $album ) {
	$group_id = ! empty( $album->group_id ) ? $album->group_id : false;

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

Changelog

Changelog
Version Description
BuddyBoss 1.2.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.