aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2005-04-30 14:14:08 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2005-04-30 14:14:08 +0000
commit7c8ed09c9a63abef56451a681038283aec14b65b (patch)
treec57ad0cde791c5aca1c45e985231aae279335828
parentf6df4a9993ac5a78b2e00c8f72e15469060e3f2b (diff)
downloadforums-7c8ed09c9a63abef56451a681038283aec14b65b.tar
forums-7c8ed09c9a63abef56451a681038283aec14b65b.tar.gz
forums-7c8ed09c9a63abef56451a681038283aec14b65b.tar.bz2
forums-7c8ed09c9a63abef56451a681038283aec14b65b.tar.xz
forums-7c8ed09c9a63abef56451a681038283aec14b65b.zip
- changes to /acm
git-svn-id: file:///svn/phpbb/trunk@5133 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/includes/acm/acm_db.php5
-rw-r--r--phpBB/includes/acm/acm_file.php3
2 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/acm/acm_db.php b/phpBB/includes/acm/acm_db.php
index e4d6e2b527..ecabae0fd5 100644
--- a/phpBB/includes/acm/acm_db.php
+++ b/phpBB/includes/acm/acm_db.php
@@ -100,6 +100,7 @@ class acm
{
case 'mysql':
case 'mysql4':
+ case 'mysqli':
$sql = 'INSERT INTO ' . CACHE_TABLE . ' (var_name, var_expires, var_data)
VALUES (' . implode('), (', $insert) . ')';
$db->sql_query($sql);
@@ -123,6 +124,8 @@ class acm
$sql = 'DELETE FROM ' . CACHE_TABLE . '
WHERE var_expires < ' . time();
$db->sql_query($sql);
+
+ set_config('cache_last_gc', time(), true);
}
function get($var_name)
@@ -179,6 +182,7 @@ class acm
{
case 'mysql':
case 'mysql4':
+ case 'mysqli':
$INSERT = 'REPLACE';
break;
@@ -219,4 +223,5 @@ class acm
return isset($this->vars[$var_name]);
}
}
+
?> \ No newline at end of file
diff --git a/phpBB/includes/acm/acm_file.php b/phpBB/includes/acm/acm_file.php
index da04c881d1..ecd1c43acc 100644
--- a/phpBB/includes/acm/acm_file.php
+++ b/phpBB/includes/acm/acm_file.php
@@ -104,6 +104,8 @@ class acm
}
}
}
+
+ set_config('cache_last_gc', time(), true);
}
function get($var_name)
@@ -299,4 +301,5 @@ class acm
return array_shift($this->sql_rowset[$query_id]);
}
}
+
?> \ No newline at end of file