Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/08/2014 05:55:58 PM (9 years ago)
Author:
r-a-y
Message:

Activity: Purge comment cache when an activity comment is deleted.

Fixes issues with object caching holding deleted activity comments.
Commit also includes a unit test.

Fixes #5863.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-functions.php

    r8787 r8990  
    16241624    }
    16251625
     1626    // Purge comment cache for the root activity update
     1627    wp_cache_delete( $activity_id, 'bp_activity_comments' );
     1628
    16261629    // Recalculate the comment tree
    16271630    BP_Activity_Activity::rebuild_activity_comment_tree( $activity_id );
Note: See TracChangeset for help on using the changeset viewer.