From c6a8abb409c01dd0ae85bf71cd41b62f47db9b77 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Thu, 13 Jan 2011 03:01:39 +0100 Subject: [PATCH] [feature/system-cron] Clarify comments about flush() call in cron. PHPBB3-9596 --- phpBB/cron.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpBB/cron.php b/phpBB/cron.php index e179b3e8d6..6de493f0bf 100644 --- a/phpBB/cron.php +++ b/phpBB/cron.php @@ -29,7 +29,8 @@ function output_image() echo base64_decode('R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='); - // test without flush ;) + // Flush here to prevent browser from showing the page as loading while + // running cron. flush(); } @@ -70,6 +71,7 @@ else $cron_type = request_var('cron_type', ''); $use_shutdown_function = (@function_exists('register_shutdown_function')) ? true : false; + // Comment this line out for debugging so the page does not return an image. output_image(); }