1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 14:30:32 +02:00

moved the queue call, added interval. The current lock is very "fluent" at the moment. ;)

git-svn-id: file:///svn/phpbb/trunk@4068 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2003-05-30 06:37:07 +00:00
parent d4cbbb1055
commit 18ccaf4483
4 changed files with 32 additions and 13 deletions

View File

@@ -229,6 +229,17 @@ if (time() - $config['cache_interval'] >= $config['cache_last_gc'])
}
*/
// Handle queue.
if (time() - $config['queue_interval'] >= $config['last_queue_run'])
{
if (file_exists($phpbb_root_path . 'cache/queue.' . $phpEx))
{
include($phpbb_root_path . 'includes/emailer.'.$phpEx);
$queue = new Queue();
$queue->process();
}
}
// Show 'Board is disabled' message
if ($config['board_disable'] && !defined('IN_ADMIN') && !defined('IN_LOGIN'))
{