[ticket/10046] Call flush() in cron.php

PHPBB3-10046
This commit is contained in:
Andreas Fischer 2011-03-12 14:40:20 +01:00
parent ec15ac92f3
commit 79d209824f

View file

@ -29,10 +29,9 @@ header('Content-length: 43');
echo base64_decode('R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='); echo base64_decode('R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
// test without flush ;) // Flush here to prevent browser from showing the page as loading while running cron.
// flush(); flush();
//
if (!isset($config['cron_lock'])) if (!isset($config['cron_lock']))
{ {
set_config('cron_lock', '0', true); set_config('cron_lock', '0', true);