bp_activity_clear_cache_for_activity( BP_Activity_Activity $activity )

Clear a cached activity item when that item is updated.

Description

Parameters

$activity

(Required) Activity object.

Source

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

function bp_activity_clear_cache_for_activity( $activity ) {
	wp_cache_delete( $activity->id, 'bp_activity' );
	wp_cache_delete( 'bp_activity_sitewide_front', 'bp' );
}

Changelog

Changelog
Version Description
BuddyPress 2.0.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.