You are here

function _httprl_run_cache_functions in HTTP Parallel Request & Threading Library 6

Same name and namespace in other branches
  1. 7 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 3692
HTTP Parallel Request Library module.

Code

function _httprl_run_cache_functions($functions_to_cache) {
  foreach ($functions_to_cache as $args) {

    // Set max to zero so this gets regenerated in the background.
    // Also do not skip on a cache miss.
    $args[2]['cache_lifetime_max'] = 0;
    $args[2]['return_null_cache_miss'] = FALSE;
    call_user_func_array('httprl_call_user_func_array_cache', $args);
  }
}