aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB')
-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