function akamai_module_implements_alter in Akamai 7.3
Same name and namespace in other branches
- 7.2 akamai.module \akamai_module_implements_alter()
Implements hook_module_implements_alter().
File
- ./
akamai.module, line 107 - Integration with Akamai CDN CCU API.
Code
function akamai_module_implements_alter(&$implementations, $hook) {
// Move Akamai to run after Acquia Purge since it can grab the stale cache in
// certain edge cases, i.e. Akamai purging superfast followed by a request.
if ($hook == 'expire_cache' && (isset($implementations['purge']) || isset($implementations['acquia_purge']))) {
$group = $implementations['akamai'];
unset($implementations['akamai']);
$implementations['akamai'] = $group;
}
// Disable the akamai node hooks if expire module is available, since
// akamai_expire_cache() will get invoked instead.
if (in_array($hook, array(
'node_update',
'node_delete',
)) && module_exists('expire')) {
unset($implementations['akamai']);
}
}