Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/03/2014 02:43:51 AM (13 years ago)
Author:
boonebgorges
Message:

Fix persistent caching for BP_Activity_Activity::get_activity_comments()

  • Use the 'bp' cache group consistently
  • When a query shows that an activity item has no comments, do not cache the boolean value false. This will cause a cache miss the next time around. Instead, store the string 'none', and then convert it to false when requerying.

Fixes #5369

File:
1 edited

Legend:

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

    r7622 r7773  
    12531253
    12541254        // Clear the comment cache for this activity
    1255         wp_cache_delete( 'bp_activity_comments_' . $parent_id );
     1255        wp_cache_delete( 'bp_activity_comments_' . $parent_id, 'bp' );
    12561256
    12571257        do_action( 'bp_activity_comment_posted', $comment_id, $params, $activity );
Note: See TracChangeset for help on using the changeset viewer.