From 7e25c8d9cc255fbe460c2a970ad7da241c0880bb Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 18 May 2006 18:18:32 +0000 Subject: - added a few missing log variables - include acp/common.php language file if displaying logs (LOG_ variables should be stored there only now) - added check to cron.php - added database_gc config variable - recalculate binary trees every once a week ;) git-svn-id: file:///svn/phpbb/trunk@5929 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'phpBB/includes/functions.php') diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index bc33f96562..a63318e35f 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -2716,28 +2716,25 @@ function page_footer() // Tidy the cache $cron_type = 'tidy_cache'; } - else if (time() - $config['warnings_last_gc'] > $config['warnings_gc']) + else if (time() - $config['warnings_gc'] > $config['warnings_last_gc']) { $cron_type = 'tidy_warnings'; } - else if (time() - (7 * 24 * 3600) > $config['database_last_gc']) + else if (time() - $config['database_gc'] > $config['database_last_gc']) { - // Tidy some table rows every week + // Tidy the database + // This includes recalculation binary trees, ... $cron_type = 'tidy_database'; } - else if (time() - $config['search_last_gc'] > $config['search_gc']) + else if (time() - $config['search_gc'] > $config['search_last_gc']) { // Tidy the search $cron_type = 'tidy_search'; } -/** -* @todo add session garbage collection - else if (time() - $config['session_gc'] > $config['session_last_gc']) { $cron_type = 'tidy_sessions'; } -*/ if ($cron_type) { -- cgit v1.2.1