mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
remove the cache for the session lookups. Actually, the disk reads/writes are more expensive than the sql queries. At phpbb.com for example this results in excessive disk access and more than 1000 cache files. This is not acceptable.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9308 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
26b69ccafe
commit
d8263b86bb
1 changed files with 1 additions and 1 deletions
|
@ -3369,7 +3369,7 @@ function obtain_guest_count($forum_id = 0)
|
|||
AND s.session_time >= ' . ($time - ((int) ($time % 60))) .
|
||||
$reading_sql;
|
||||
}
|
||||
$result = $db->sql_query($sql, 60);
|
||||
$result = $db->sql_query($sql);
|
||||
$guests_online = (int) $db->sql_fetchfield('num_guests');
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue