mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
Implementation of an experimental cache manager.
git-svn-id: file:///svn/phpbb/trunk@3312 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -139,18 +139,8 @@ $total_online_users = $logged_visible_online + $logged_hidden_online + $guests_o
|
||||
|
||||
if ($total_online_users > $config['record_online_users'])
|
||||
{
|
||||
$config['record_online_users'] = $total_online_users;
|
||||
$config['record_online_date'] = time();
|
||||
|
||||
$sql = "UPDATE " . CONFIG_TABLE . "
|
||||
SET config_value = '$total_online_users'
|
||||
WHERE config_name = 'record_online_users'";
|
||||
$db->sql_query($sql);
|
||||
|
||||
$sql = "UPDATE " . CONFIG_TABLE . "
|
||||
SET config_value = '" . $config['record_online_date'] . "'
|
||||
WHERE config_name = 'record_online_date'";
|
||||
$db->sql_query($sql);
|
||||
set_config('record_online_users', $total_online_users);
|
||||
set_config('record_online_date', time());
|
||||
}
|
||||
|
||||
if ($total_online_users == 0)
|
||||
|
Reference in New Issue
Block a user