aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-01-27 17:54:35 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-01-27 17:54:35 +0000
commitd8263b86bbd0ed217c7e65a169fd6ff3c9a6a111 (patch)
treefe4902d8e0147eddbcbdd75bd8273a2ea8a5dc74 /phpBB/includes
parent26b69ccafe7df8c9e12d929f4f8a0635975b0cdb (diff)
downloadforums-d8263b86bbd0ed217c7e65a169fd6ff3c9a6a111.tar
forums-d8263b86bbd0ed217c7e65a169fd6ff3c9a6a111.tar.gz
forums-d8263b86bbd0ed217c7e65a169fd6ff3c9a6a111.tar.bz2
forums-d8263b86bbd0ed217c7e65a169fd6ff3c9a6a111.tar.xz
forums-d8263b86bbd0ed217c7e65a169fd6ff3c9a6a111.zip
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
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 55c4cc5b51..bbeaca9d1d 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -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);