/**
 * Reset cache incrementor for the Activity component.
 *
 * Called whenever an activity item is created, updated, or deleted, this
 * function effectively invalidates all cached results of activity queries.
 *
 * @since 2.7.0
 *
 * @return bool True on success, false on failure.
 */
function bp_activity_reset_cache_incrementor()
{
    $without_last_activity = bp_core_reset_incrementor('bp_activity');
    $with_last_activity = bp_core_reset_incrementor('bp_activity_with_last_activity');
    return $without_last_activity && $with_last_activity;
}
/**
 * Invalidate activity caches when a user's last_activity value is changed.
 *
 * @since 2.7.0
 *
 * @return bool True on success, false on failure.
 */
function bp_members_reset_activity_cache_incrementor()
{
    return bp_core_reset_incrementor('bp_activity_with_last_activity');
}
/**
 * Reset cache incrementor for the Groups component.
 *
 * 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.
 *
 * @since 2.7.0
 *
 * @return bool True on success, false on failure.
 */
function bp_groups_reset_cache_incrementor()
{
    return bp_core_reset_incrementor('bp_groups');
}