You are here

function _httprl_run_cache_functions in HTTP Parallel Request & Threading Library 7

Same name and namespace in other branches
  1. 6 httprl.module \_httprl_run_cache_functions()

Cache function helper. Runs the array through the cache function.

Parameters

callable $functions_to_cache: The callable to be called.

1 string reference to '_httprl_run_cache_functions'
_httprl_run_functions_once_on_shutdown_array_cache in ./httprl.module
Cache function helper. Combine duplicates & run them in a shutdown function.

File

./httprl.module, line 3773
HTTP Parallel Request Library module.

Code

function _httprl_run_cache_functions($functions_to_cache) {

  // Cut connection to browser.
  @ob_end_flush();
  @ob_flush();
  @flush();
  sleep(1);
  if (function_exists('fastcgi_finish_request')) {
    fastcgi_finish_request();
  }
  foreach ($functions_to_cache as $args) {
    call_user_func_array('httprl_call_user_func_array_cache', $args);
  }
}