1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-24 17:22:55 +02:00

[feature/system-cron] WIP on making cron tasks runnable via system cron

PHPBB3-9596
This commit is contained in:
Oleg Pudeyev
2010-04-14 16:14:32 -04:00
parent 8f0e9aee5c
commit 77d7238eef
7 changed files with 421 additions and 287 deletions

View File

@@ -193,9 +193,9 @@ if ($forum_data['forum_topics_per_page'])
}
// Do the forum Prune thang - cron type job ...
if ($forum_data['prune_next'] < time() && $forum_data['enable_prune'])
if (!$config['use_system_cron'] && $cron->is_task_runnable('prune_forum', array($forum_data)))
{
$template->assign_var('RUN_CRON_TASK', '<img src="' . append_sid($phpbb_root_path . 'cron.' . $phpEx, 'cron_type=prune_forum&amp;f=' . $forum_id) . '" alt="cron" width="1" height="1" />');
$template->assign_var('RUN_CRON_TASK', $cron->generate_task_code('prune_forum', array($forum_id)));
}
// Forum rules and subscription info