Changeset 8224 for trunk/bp-groups/bp-groups-activity.php
- Timestamp:
- 03/31/2014 09:27:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-activity.php
r8127 r8224 144 144 } 145 145 146 global $wpdb, $bp; 147 $uncached_ids_sql = implode( ',', wp_parse_id_list( $uncached_ids ) ); 148 $groups = $wpdb->get_results( "SELECT * FROM {$bp->groups->table_name} WHERE id IN ({$uncached_ids_sql})" ); 149 foreach ( $groups as $group ) { 150 wp_cache_set( $group->id, $group, 'bp_groups' ); 146 if ( ! empty( $uncached_ids ) ) { 147 global $wpdb, $bp; 148 $uncached_ids_sql = implode( ',', wp_parse_id_list( $uncached_ids ) ); 149 $groups = $wpdb->get_results( "SELECT * FROM {$bp->groups->table_name} WHERE id IN ({$uncached_ids_sql})" ); 150 foreach ( $groups as $group ) { 151 wp_cache_set( $group->id, $group, 'bp_groups' ); 152 } 151 153 } 152 154 }
Note: See TracChangeset
for help on using the changeset viewer.