aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/session.php
diff options
context:
space:
mode:
authorLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-01-11 22:56:49 +0000
committerLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-01-11 22:56:49 +0000
commit85b196b5fe828c127d321527bd625a1727bad4aa (patch)
tree1557472b0431f05a4ae6b9e0fb42219d501ddefc /phpBB/includes/session.php
parentd7e485e5f6fd5f52e8bda854c3ad67c5b53337ae (diff)
downloadforums-85b196b5fe828c127d321527bd625a1727bad4aa.tar
forums-85b196b5fe828c127d321527bd625a1727bad4aa.tar.gz
forums-85b196b5fe828c127d321527bd625a1727bad4aa.tar.bz2
forums-85b196b5fe828c127d321527bd625a1727bad4aa.tar.xz
forums-85b196b5fe828c127d321527bd625a1727bad4aa.zip
Implementation of an experimental cache manager.
git-svn-id: file:///svn/phpbb/trunk@3312 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/session.php')
-rw-r--r--phpBB/includes/session.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index b87a10b725..d642b79bd0 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -326,10 +326,7 @@ class session
{
// Less than 5 sessions, update gc timer ... else we want gc
// called again to delete other sessions
- $sql = "UPDATE " . CONFIG_TABLE . "
- SET config_value = '$current_time'
- WHERE config_name = 'session_last_gc'";
- $db->sql_query($sql);
+ set_config('session_last_gc', $current_time);
}
return;
@@ -442,7 +439,9 @@ class user extends session
AND t.template_id = s.template_id
AND c.theme_id = s.style_id
AND i.imageset_id = s.imageset_id";
- $result = $db->sql_query($sql);
+
+ // Cache this query for 60 seconds
+ $result = $db->sql_query($sql, 60);
if (!($this->theme = $db->sql_fetchrow($result)))
{