mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 22:08:54 +00:00
ACM garbage collection
git-svn-id: file:///svn/phpbb/trunk@4685 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
ac0b5d79ad
commit
ce8fddf78f
2 changed files with 6 additions and 4 deletions
|
@ -250,12 +250,12 @@ else
|
|||
unset($cached_config);
|
||||
}
|
||||
|
||||
/*
|
||||
if (time() - $config['cache_interval'] >= $config['cache_last_gc'])
|
||||
// Tidy the cache
|
||||
if (method_exists($cache, 'tidy') && time() - $config['cache_gc'] > $config['cache_last_gc'])
|
||||
{
|
||||
$cache->tidy($config['cache_gc']);
|
||||
$cache->tidy();
|
||||
set_config('cache_last_gc', time(), TRUE);
|
||||
}
|
||||
*/
|
||||
|
||||
// Adjust storage path's
|
||||
$config['upload_dir'] = ($config['upload_dir']{0} == '/' || ($config['upload_dir']{0} != '/' && $config['upload_dir']{1} == ':')) ? $config['upload_dir'] : $phpbb_root_path . $config['upload_dir'];
|
||||
|
|
|
@ -73,6 +73,7 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_onlinetrack',
|
|||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('load_tplcompile', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('session_gc', '3600');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('search_gc', '7200');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('cache_gc', '7200');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('queue_interval', '600');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('ip_check', '4');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('browser_check', '1');
|
||||
|
@ -165,6 +166,7 @@ INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('num_fi
|
|||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('upload_dir_size', '0', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('session_last_gc', '0', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('search_last_gc', '0', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('cache_last_gc', '0', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('last_queue_run', '0', 1);
|
||||
|
||||
# -- auth options
|
||||
|
|
Loading…
Add table
Reference in a new issue