Skip to:
Content

BuddyPress.org


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

Normalize the cache keys and group name used for activity comments

wp_cache_get( $aid, 'bp_activity_comments' )

is more in line with single item caching across other components.

See r7956, r7997

See #5434

File:
1 edited

Legend:

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

    r8003 r8005  
    895895        }
    896896
    897         $comments = wp_cache_get( 'bp_activity_comments_' . $activity_id, 'bp' );
     897        $comments = wp_cache_get( $activity_id, 'bp_activity_comments' );
    898898
    899899        // We store the string 'none' to cache the fact that the
     
    970970            }
    971971
    972             wp_cache_set( 'bp_activity_comments_' . $activity_id, $cache_value, 'bp' );
     972            wp_cache_set( $activity_id, $cache_value, 'bp_activity_comments' );
    973973        }
    974974
Note: See TracChangeset for help on using the changeset viewer.