You are here

function ultimate_cron_poorman_page_flush in Ultimate Cron 7.2

Flush the page and end the client request.

2 calls to ultimate_cron_poorman_page_flush()
UltimateCronBackgroundProcessLegacyLauncher::poormanLauncher in plugins/ultimate_cron/launcher/background_process_legacy.class.php
Poorman launcher background process callback.
UltimateCronSerialLauncher::launchPoorman in plugins/ultimate_cron/launcher/serial.class.php
Poormans cron launcher.

File

./ultimate_cron.poorman.inc, line 185
Poormans cron functions.

Code

function ultimate_cron_poorman_page_flush() {
  @ignore_user_abort();
  $GLOBALS['ultimate_cron_page_flush'] = TRUE;
  while (ob_get_level() > 0) {
    ob_end_flush();
  }
  flush();

  // FastCGI may need another way of letting the client know, that
  // we're done with it.
  if (function_exists('fastcgi_finish_request')) {
    fastcgi_finish_request();
  }
}