diff --git a/index.php b/index.php index c8c65419..9d30339f 100644 --- a/index.php +++ b/index.php @@ -134,7 +134,7 @@ if(setting('core.anonymous_usage_statistics')) { if(fetchDatabaseConfig('last_usage_report', $value)) { $should_report = time() > (int)$value + $report_time; if($cache->enabled()) { - $cache->set('last_usage_report', $value); + $cache->set('last_usage_report', $value, 60 * 60); } } else { @@ -148,7 +148,7 @@ if(setting('core.anonymous_usage_statistics')) { updateDatabaseConfig('last_usage_report', time()); if($cache->enabled()) { - $cache->set('last_usage_report', time()); + $cache->set('last_usage_report', time(), 60 * 60); } } } diff --git a/system/init.php b/system/init.php index 9217e8f0..7bf9f1de 100644 --- a/system/init.php +++ b/system/init.php @@ -96,8 +96,8 @@ if($config_lua_reload) { // cache config if($cache->enabled()) { - $cache->set('config_lua', serialize($config['lua']), 120); - $cache->set('server_path', $config['server_path']); + $cache->set('config_lua', serialize($config['lua']), 2 * 60); + $cache->set('server_path', $config['server_path'], 10 * 60); } } unset($tmp); diff --git a/system/template.php b/system/template.php index 8a2258ff..62d3e29b 100644 --- a/system/template.php +++ b/system/template.php @@ -95,7 +95,7 @@ else { unset($file); if ($cache->enabled()) { - $cache->set('template_ini_' . $template_name, serialize($template_ini)); + $cache->set('template_ini_' . $template_name, serialize($template_ini), 10 * 60); } } }