[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/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

  bp_activity_update_meta_cache()
  bp_activity_clear_cache_for_activity()
  bp_activity_clear_cache_for_deleted_activity()
  bp_activity_reset_cache_incrementor()

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.

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

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

param: BP_Activity_Activity $activity Activity object.
since: 2.0.0

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

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

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.

return: bool True on success, false on failure.
since: 2.7.0



Generated: Thu Nov 21 01:00:57 2024 Cross-referenced by PHPXref 0.7.1