Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/01/2011 08:45:38 PM (14 years ago)
Author:
boonebgorges
Message:

Adds WP cache support to groups_get_group() and switches internal instantiations of BP_Groups_Group out for calls to groups_get_group() where possible. Fixes #3770

File:
1 edited

Legend:

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

    r5417 r5431  
    120120
    121121        do_action_ref_array( 'groups_group_after_save', array( &$this ) );
     122       
     123        wp_cache_delete( 'bp_groups_group_' . $this->id, 'bp' );
    122124
    123125        return true;
     
    141143
    142144        do_action_ref_array( 'bp_groups_delete_group', array( &$this ) );
     145
     146        wp_cache_delete( 'bp_groups_group_' . $this->id, 'bp' );
    143147
    144148        // Finally remove the group entry from the DB
Note: See TracChangeset for help on using the changeset viewer.