diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2003-05-30 06:37:07 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2003-05-30 06:37:07 +0000 |
commit | 18ccaf44831f9c18d8cf74ea280ea31d36cc8bac (patch) | |
tree | d4b6f22a072a4c247a28c7be75e3bc3ff74cd9d5 /phpBB/common.php | |
parent | d4cbbb1055e687e345c7cf00c69b94c206c2b69e (diff) | |
download | forums-18ccaf44831f9c18d8cf74ea280ea31d36cc8bac.tar forums-18ccaf44831f9c18d8cf74ea280ea31d36cc8bac.tar.gz forums-18ccaf44831f9c18d8cf74ea280ea31d36cc8bac.tar.bz2 forums-18ccaf44831f9c18d8cf74ea280ea31d36cc8bac.tar.xz forums-18ccaf44831f9c18d8cf74ea280ea31d36cc8bac.zip |
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
Diffstat (limited to 'phpBB/common.php')
-rw-r--r-- | phpBB/common.php | 11 |
1 files changed, 11 insertions, 0 deletions
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')) { |