Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/27/2014 08:36:08 PM (11 years ago)
Author:
r-a-y
Message:

Properly set object cache for a new BP_Groups_Group object.

See #5407

File:
1 edited

Legend:

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

    r7981 r8001  
    186186        if ( false === $group ) {
    187187            $group = $wpdb->get_row( $wpdb->prepare( "SELECT g.* FROM {$bp->groups->table_name} g WHERE g.id = %d", $this->id ) );
     188
     189            wp_cache_set( $this->id, $group, 'bp_groups' );
    188190        }
    189191
Note: See TracChangeset for help on using the changeset viewer.