diff options
author | Graham Eames <grahamje@users.sourceforge.net> | 2006-03-04 17:34:04 +0000 |
---|---|---|
committer | Graham Eames <grahamje@users.sourceforge.net> | 2006-03-04 17:34:04 +0000 |
commit | 14b6714c93944b6af9ec01d978cfe7f387dc7e9a (patch) | |
tree | fcf2b32921fe4ba1f8c48d8c199fbe7dbc545317 /phpBB/includes/functions.php | |
parent | 70b20a98f756c0bd3081d5de92997776ae39d6ce (diff) | |
download | forums-14b6714c93944b6af9ec01d978cfe7f387dc7e9a.tar forums-14b6714c93944b6af9ec01d978cfe7f387dc7e9a.tar.gz forums-14b6714c93944b6af9ec01d978cfe7f387dc7e9a.tar.bz2 forums-14b6714c93944b6af9ec01d978cfe7f387dc7e9a.tar.xz forums-14b6714c93944b6af9ec01d978cfe7f387dc7e9a.zip |
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
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 4a5838effe..1949b5f6c4 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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 |