bp_groups_reset_cache_incrementor()

Reset cache incrementor for the Groups component.

Description

This function invalidates all cached results of group queries, whenever one of the following events takes place:

  • A group is created or updated.
  • A group is deleted.
  • A group’s metadata is modified.

Return

(bool) True on success, false on failure.

Source

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

function bp_groups_reset_cache_incrementor() {
	return bp_core_reset_incrementor( 'bp_groups' );
}

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.