aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/cache/driver/memory.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/cache/driver/memory.php')
-rw-r--r--phpBB/phpbb/cache/driver/memory.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/phpbb/cache/driver/memory.php b/phpBB/phpbb/cache/driver/memory.php
index 0cef9c3483..baae22d809 100644
--- a/phpBB/phpbb/cache/driver/memory.php
+++ b/phpBB/phpbb/cache/driver/memory.php
@@ -81,9 +81,10 @@ abstract class memory extends \phpbb\cache\driver\base
*/
function tidy()
{
- // cache has auto GC, no need to have any code here :)
+ global $config;
- set_config('cache_last_gc', time(), true);
+ // cache has auto GC, no need to have any code here :)
+ $config->set('cache_last_gc', time(), false);
}
/**