bp_notices_clear_cache( BP_Messages_Notice $notice )

Invalidate cache for notices.

Description

Currently, invalidates active notice cache.

Parameters

$notice

(Required) Notice that was saved.

Source

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

function bp_notices_clear_cache( $notice ) {
	wp_cache_delete( 'active_notice', 'bp_messages' );
}

Changelog

Changelog
Version Description
BuddyPress 2.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.