mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 22:38:52 +00:00
[feature/system-cron] Clarify comments about flush() call in cron.
PHPBB3-9596
This commit is contained in:
parent
7a2c5e618b
commit
c6a8abb409
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue