Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/08/2013 05:34:19 PM (12 years ago)
Author:
boonebgorges
Message:

Pass the 'bp' group to wp_cache_delete() in bp_groups_delete_group_cache()

The absence of this group parameter meant that the cache deletion was never
actually working, causing problems with persistent caching as well as plugins
that cause group details to be saved multiple times on a pageload (such as
bbPress)

Fixes #4919

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-cache.php

    r6611 r6896  
    5757 */
    5858function bp_groups_delete_group_cache( $group_id = 0 ) {
    59     wp_cache_delete( 'bp_groups_group_' . $group_id . '_load_users'  );
    60     wp_cache_delete( 'bp_groups_group_' . $group_id . '_noload_users' );
     59    wp_cache_delete( 'bp_groups_group_' . $group_id . '_load_users', 'bp' );
     60    wp_cache_delete( 'bp_groups_group_' . $group_id . '_noload_users', 'bp' );
    6161}
    6262add_action( 'groups_delete_group',     'bp_groups_delete_group_cache' );
Note: See TracChangeset for help on using the changeset viewer.