1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/13494] Update calls to set_config()

PHPBB3-13494
This commit is contained in:
Gaëtan Muller
2015-01-11 17:32:31 +01:00
parent 6e2838a4ca
commit 79d4ff5538
45 changed files with 175 additions and 181 deletions

View File

@@ -44,9 +44,11 @@ class eaccelerator extends \phpbb\cache\driver\memory
*/
function tidy()
{
global $config;
eaccelerator_gc();
set_config('cache_last_gc', time(), true);
$config->set('cache_last_gc', time(), false);
}
/**

View File

@@ -95,7 +95,7 @@ class file extends \phpbb\cache\driver\base
*/
function tidy()
{
global $phpEx;
global $config, $phpEx;
$dir = @opendir($this->cache_dir);
@@ -149,7 +149,7 @@ class file extends \phpbb\cache\driver\base
}
}
set_config('cache_last_gc', time(), true);
$config->set('cache_last_gc', time(), false);
}
/**

View File

@@ -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);
}
/**

View File

@@ -52,8 +52,10 @@ class null extends \phpbb\cache\driver\base
*/
function tidy()
{
global $config;
// This cache always has a tidy room.
set_config('cache_last_gc', time(), true);
$config->set('cache_last_gc', time(), false);
}
/**