diff options
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 6b0b5d3642..80639c29b2 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -2057,6 +2057,11 @@ function page_footer() // Tidy some table rows every week $cron_type = 'tidy_database'; } + else if (time() - $config['search_last_gc'] > $config['search_gc']) + { + // Tidy the cache + $cron_type = 'tidy_search'; + } /** * @todo add session garbage collection |