mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Fixed: record_ values do not make the cache to expire
git-svn-id: file:///svn/phpbb/trunk@3931 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
3bcc643ee5
commit
bec93ceb59
1 changed files with 2 additions and 4 deletions
|
@ -50,7 +50,6 @@ else
|
||||||
// Last visit date/time
|
// Last visit date/time
|
||||||
$s_last_visit = ($user->data['user_id'] != ANONYMOUS) ? $user->format_date($user->data['session_last_visit']) : '';
|
$s_last_visit = ($user->data['user_id'] != ANONYMOUS) ? $user->format_date($user->data['session_last_visit']) : '';
|
||||||
|
|
||||||
|
|
||||||
// Get users online list ... if required
|
// Get users online list ... if required
|
||||||
$l_online_users = $online_userlist = $l_online_record = '';
|
$l_online_users = $online_userlist = $l_online_record = '';
|
||||||
if (!empty($config['load_online']) && !empty($config['load_online_time']))
|
if (!empty($config['load_online']) && !empty($config['load_online_time']))
|
||||||
|
@ -137,8 +136,8 @@ if (!empty($config['load_online']) && !empty($config['load_online_time']))
|
||||||
|
|
||||||
if ($total_online_users > $config['record_online_users'])
|
if ($total_online_users > $config['record_online_users'])
|
||||||
{
|
{
|
||||||
set_config('record_online_users', $total_online_users);
|
set_config('record_online_users', $total_online_users, TRUE);
|
||||||
set_config('record_online_date', time());
|
set_config('record_online_date', time(), TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build online listing
|
// Build online listing
|
||||||
|
@ -177,7 +176,6 @@ if (!empty($config['load_online']) && !empty($config['load_online_time']))
|
||||||
$l_online_time = sprintf($user->lang[$l_online_time], $config['load_online_time']);
|
$l_online_time = sprintf($user->lang[$l_online_time], $config['load_online_time']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Obtain number of new private messages if user is logged in
|
// Obtain number of new private messages if user is logged in
|
||||||
if ($user->data['user_id'] != ANONYMOUS)
|
if ($user->data['user_id'] != ANONYMOUS)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue