diff --git a/index.php b/index.php index 8cd36247d..90a5fc156 100644 --- a/index.php +++ b/index.php @@ -221,7 +221,7 @@ 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 { @@ -236,7 +236,7 @@ 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 86670247d..0d89a22c9 100644 --- a/system/init.php +++ b/system/init.php @@ -74,8 +74,8 @@ // 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 807597703..cddab631f 100644 --- a/system/template.php +++ b/system/template.php @@ -83,7 +83,7 @@ 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); } } }