bp_activity_clear_cache_for_activity( BP_Activity_Activity $activity )

Clear a cached activity item when that item is updated.

Parameters Parameters


(BP_Activity_Activity) (Required) Activity object.

Source 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' );

Top ↑

Changelog Changelog

Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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