Changeset 9231 for trunk/src/bp-groups/bp-groups-functions.php
- Timestamp:
- 12/15/2014 08:38:11 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-groups/bp-groups-functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-functions.php
r9226 r9231 645 645 */ 646 646 function groups_get_total_group_count() { 647 if ( !$count = wp_cache_get( 'bp_total_group_count', 'bp' ) ) { 647 $count = wp_cache_get( 'bp_total_group_count', 'bp' ); 648 649 if ( false === $count ) { 648 650 $count = BP_Groups_Group::get_total_group_count(); 649 651 wp_cache_set( 'bp_total_group_count', $count, 'bp' ); … … 685 687 $user_id = ( bp_displayed_user_id() ) ? bp_displayed_user_id() : bp_loggedin_user_id(); 686 688 687 if ( !$count = wp_cache_get( 'bp_total_groups_for_user_' . $user_id, 'bp' ) ) { 689 $count = wp_cache_get( 'bp_total_groups_for_user_' . $user_id, 'bp' ); 690 691 if ( false === $count ) { 688 692 $count = BP_Groups_Member::total_group_count( $user_id ); 689 693 wp_cache_set( 'bp_total_groups_for_user_' . $user_id, $count, 'bp' );
Note: See TracChangeset
for help on using the changeset viewer.