Skip to:
Content

BuddyPress.org

Changeset 8004


Ignore:
Timestamp:
02/28/2014 01:49:12 PM (11 years ago)
Author:
boonebgorges
Message:

Clear activity item cache when it receives comments

r7997 fixed a bug was causing single activity items not to be cached properly
when a BP_Activity_Activity object was instantiated. This fix uncovered a bug
in activity commenting, where the activity parent was cached as childless, and
the cache was not invalidated when a new comment was posted.

See #5434

File:
1 edited

Legend:

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

    r7972 r8004  
    12461246    // Clear the comment cache for this activity
    12471247    wp_cache_delete( 'bp_activity_comments_' . $parent_id, 'bp' );
     1248    wp_cache_delete( $parent_id, 'bp_activity' );
    12481249
    12491250    do_action( 'bp_activity_comment_posted', $comment_id, $params, $activity );
Note: See TracChangeset for help on using the changeset viewer.