1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 00:07:44 +02:00

Expire issued warnings after and admin configurable time

TODO: Add config option for this value to the ACP


git-svn-id: file:///svn/phpbb/trunk@5602 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Graham Eames
2006-03-04 17:34:04 +00:00
parent 70b20a98f7
commit 14b6714c93
4 changed files with 66 additions and 0 deletions

View File

@@ -2171,6 +2171,10 @@ function page_footer()
// Tidy the cache
$cron_type = 'tidy_cache';
}
else if (time() - $config['warnings_last_gc'] > $config['warnings_gc'])
{
$cron_type = 'tidy_warnings';
}
else if (time() - (7 * 24 * 3600) > $config['database_last_gc'])
{
// Tidy some table rows every week