function _cacheflush_clear_preset_clear_call_functions in CacheFlush 7.2
Same name and namespace in other branches
- 7 cacheflush.inc \_cacheflush_clear_preset_clear_call_functions()
Call predefined functions to clear cache.
Parameters
array $settings: Preset setting with cache clear functions.
1 call to _cacheflush_clear_preset_clear_call_functions()
- _cacheflush_clear_preset in ./
cacheflush.inc - Based on settings decide witch clear cache function to be called.
File
- ./
cacheflush.inc, line 85 - Cacheflusher module inc file with dinamic clear cache functions.
Code
function _cacheflush_clear_preset_clear_call_functions($settings) {
// Call every function declared in preset.
foreach ($settings['functions'] as $key => $value) {
if (isset($settings['params'][$key])) {
call_user_func_array($value, $settings['params'][$key]);
}
else {
$value();
}
}
}