/** * Get the total group count for the site. * * @return int */ function groups_get_total_group_count() { $count = wp_cache_get('bp_total_group_count', 'bp'); if (false === $count) { $count = BP_Groups_Group::get_total_group_count(); wp_cache_set('bp_total_group_count', $count, 'bp'); } return $count; }
function groups_get_total_group_count() { if (!($count = nxt_cache_get('bp_total_group_count', 'bp'))) { $count = BP_Groups_Group::get_total_group_count(); nxt_cache_set('bp_total_group_count', $count, 'bp'); } return $count; }