bp_core_reset_incrementor( string $group )

Reset a group-specific cache incrementor.

Description

Call this function when all incrementor-based caches associated with a given cache group should be invalidated.

Parameters

$group

(string) (Required) Cache group. Eg 'bp_activity'.

Return

(bool) True on success, false on failure.

Source

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

function bp_core_reset_incrementor( $group ) {
	return wp_cache_delete( 'incrementor', $group );
}

Changelog

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