Skip to:
Content

BuddyPress.org

Ticket #6127: 6127.patch

File 6127.patch, 546 bytes (added by imath, 5 years ago)
  • src/bp-activity/bp-activity-cache.php

    diff --git src/bp-activity/bp-activity-cache.php src/bp-activity/bp-activity-cache.php
    index 4674255..6ae7dde 100644
    function bp_activity_update_meta_cache( $activity_ids = false ) { 
    4343 */
    4444function bp_activity_clear_cache_for_activity( $activity ) {
    4545        wp_cache_delete( $activity->id, 'bp_activity' );
     46        wp_cache_delete( 'bp_activity_sitewide_front', 'bp' );
    4647}
    4748add_action( 'bp_activity_after_save', 'bp_activity_clear_cache_for_activity' );
    4849