Ticket #8296: 8296.patch
File 8296.patch, 647 bytes (added by , 5 years ago) |
---|
-
src/bp-activity/bp-activity-cache.php
47 47 function bp_activity_clear_cache_for_activity( $activity ) { 48 48 wp_cache_delete( $activity->id, 'bp_activity' ); 49 49 wp_cache_delete( 'bp_activity_sitewide_front', 'bp' ); 50 51 if ( 'activity_comment' == $activity->type && $activity->is_spam ) { 52 wp_cache_delete( $activity->item_id, 'bp_activity_comments' ); 53 } 50 54 } 51 55 add_action( 'bp_activity_after_save', 'bp_activity_clear_cache_for_activity' ); 52 56