From 18ccaf44831f9c18d8cf74ea280ea31d36cc8bac Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Fri, 30 May 2003 06:37:07 +0000 Subject: 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 --- phpBB/common.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'phpBB/common.php') diff --git a/phpBB/common.php b/phpBB/common.php index c30742eb9c..36d0d3377f 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -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')) { -- cgit v1.2.1