Skip to:
Content

BuddyPress.org

Changeset 2618 for trunk/bp-groups.php


Ignore:
Timestamp:
02/07/2010 03:39:34 PM (15 years ago)
Author:
apeatling
Message:

Adding missing cache_set() calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups.php

    r2617 r2618  
    17501750
    17511751function groups_get_total_group_count() {
    1752     if ( !$count = wp_cache_get( 'bp_total_group_count', 'bp' ) )
     1752    if ( !$count = wp_cache_get( 'bp_total_group_count', 'bp' ) ) {
    17531753        $count = BP_Groups_Group::get_total_group_count();
     1754        wp_cache_set( 'bp_total_group_count', $count, 'bp' );
     1755    }
    17541756
    17551757    return $count;
     
    17981800        $user_id = ( $bp->displayed_user->id ) ? $bp->displayed_user->id : $bp->loggedin_user->id;
    17991801
    1800     if ( !$count = wp_cache_get( 'bp_total_groups_for_user_' . $user_id, 'bp' ) )
     1802    if ( !$count = wp_cache_get( 'bp_total_groups_for_user_' . $user_id, 'bp' ) ) {
    18011803        $count = BP_Groups_Member::total_group_count( $user_id );
     1804        wp_cache_set( 'bp_total_groups_for_user_' . $user_id, $count, 'bp' );
     1805    }
    18021806
    18031807    return $count;
Note: See TracChangeset for help on using the changeset viewer.