1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-12 19:54:12 +02:00

Changed code so it stores total users in config table to remove a slightly costly query

git-svn-id: file:///svn/phpbb/trunk@2549 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
James Atkinson
2002-04-30 17:56:50 +00:00
parent 559dff21b7
commit 52c0d86c95
5 changed files with 59 additions and 7 deletions

View File

@@ -75,10 +75,13 @@ $tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f'
// removing them
//
$total_posts = get_db_stat('postcount');
$total_users = get_db_stat('usercount');
$newest_userdata = get_db_stat('newestuser');
$newest_user = $newest_userdata['username'];
$newest_uid = $newest_userdata['user_id'];
//$total_users = get_db_stat('usercount');
//$newest_userdata = get_db_stat('newestuser');
//$newest_user = $newest_userdata['username'];
//$newest_uid = $newest_userdata['user_id'];
$total_users = $board_config['num_users'];
$newest_user = $board_config['newest_username'];
$newest_uid = $board_config['newest_user_id'];
if( $total_posts == 0 )
{