Changeset 8005
- Timestamp:
- 02/28/2014 01:49:15 PM (11 years ago)
- Location:
- trunk/bp-activity
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-classes.php
r8003 r8005 895 895 } 896 896 897 $comments = wp_cache_get( 'bp_activity_comments_' . $activity_id, 'bp' );897 $comments = wp_cache_get( $activity_id, 'bp_activity_comments' ); 898 898 899 899 // We store the string 'none' to cache the fact that the … … 970 970 } 971 971 972 wp_cache_set( 'bp_activity_comments_' . $activity_id, $cache_value, 'bp' );972 wp_cache_set( $activity_id, $cache_value, 'bp_activity_comments' ); 973 973 } 974 974 -
trunk/bp-activity/bp-activity-functions.php
r8004 r8005 1244 1244 ) ); 1245 1245 1246 // Clear the comment cache for this activity1247 wp_cache_delete( 'bp_activity_comments_' . $parent_id, 'bp' );1246 // Clear the comment and item cache for this activity 1247 wp_cache_delete( $parent_id, 'bp_activity_comments' ); 1248 1248 wp_cache_delete( $parent_id, 'bp_activity' ); 1249 1249 … … 1663 1663 1664 1664 // Clear the activity comment cache for this activity item 1665 wp_cache_delete( 'bp_activity_comments_' . $activity->id, 'bp' );1665 wp_cache_delete( $activity->id, 'bp_activity_comments' ); 1666 1666 1667 1667 // If Akismet is active, and this was a manual spam/ham request, stop Akismet checking the activity … … 1703 1703 1704 1704 // Clear the activity comment cache for this activity item 1705 wp_cache_delete( 'bp_activity_comments_' . $activity->id, 'bp' );1705 wp_cache_delete( $activity->id, 'bp_activity_comments' ); 1706 1706 1707 1707 // If Akismet is active, and this was a manual spam/ham request, stop Akismet checking the activity
Note: See TracChangeset
for help on using the changeset viewer.