mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-22 17:41:24 +02:00
[feature/system-cron] Clarify comments about flush() call in cron.
PHPBB3-9596
This commit is contained in:
committed by
Oleg Pudeyev
parent
7a2c5e618b
commit
c6a8abb409
@@ -29,7 +29,8 @@ function output_image()
|
|||||||
|
|
||||||
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,6 +71,7 @@ else
|
|||||||
$cron_type = request_var('cron_type', '');
|
$cron_type = request_var('cron_type', '');
|
||||||
$use_shutdown_function = (@function_exists('register_shutdown_function')) ? true : false;
|
$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();
|
output_image();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user