Changeset 2618 for trunk/bp-groups.php
- Timestamp:
- 02/07/2010 03:39:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups.php
r2617 r2618 1750 1750 1751 1751 function 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' ) ) { 1753 1753 $count = BP_Groups_Group::get_total_group_count(); 1754 wp_cache_set( 'bp_total_group_count', $count, 'bp' ); 1755 } 1754 1756 1755 1757 return $count; … … 1798 1800 $user_id = ( $bp->displayed_user->id ) ? $bp->displayed_user->id : $bp->loggedin_user->id; 1799 1801 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' ) ) { 1801 1803 $count = BP_Groups_Member::total_group_count( $user_id ); 1804 wp_cache_set( 'bp_total_groups_for_user_' . $user_id, $count, 'bp' ); 1805 } 1802 1806 1803 1807 return $count;
Note: See TracChangeset
for help on using the changeset viewer.