[ Index ]

PHP Cross Reference of BuddyPress




/src/bp-activity/ -> bp-activity-cache.php (summary)

Functions related to the BuddyPress Activity component and the WP Cache.

File Size: 91 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions


Functions that are not part of a class:

bp_activity_update_meta_cache( $activity_ids = false )   X-Ref
Slurp up activitymeta for a specified set of activity items.

It grabs all activitymeta associated with all of the activity items passed
in $activity_ids and adds it to the WP cache. This improves efficiency when
using querying activitymeta inline.

since: 1.6.0
param: int|string|array|bool $activity_ids Accepts a single activity ID, or a comma-

bp_activity_clear_cache_for_activity( $activity )   X-Ref
Clear a cached activity item when that item is updated.

since: 2.0.0
param: BP_Activity_Activity $activity Activity object.

bp_activity_clear_cache_for_deleted_activity( $deleted_ids )   X-Ref
Clear cached data for deleted activity items.

since: 2.0.0
param: array $deleted_ids IDs of deleted activity items.

bp_activity_reset_cache_incrementor()   X-Ref
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.

Generated: Sun May 22 01:00:58 2022 Cross-referenced by PHPXref 0.7.1