bp_activity_reset_cache_incrementor()
Reset cache incrementor for the Activity component.
Description
Called whenever an activity item is created, updated, or deleted, this function effectively invalidates all cached results of activity queries.
Return
(bool) True on success, false on failure.
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; }
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.