Reset cache incrementor for the Activity component.

Description Description

Called whenever an activity item is created, updated, or deleted, this function effectively invalidates all cached results of activity queries.

Top ↑

Return Return

(bool) True on success, false on failure.

Source Source

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

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;

Top ↑

Changelog Changelog

Version Description
2.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.