Commit 6f7a8922 authored by Adam Bramley's avatar Adam Bramley Committed by bgm

Issue #1356424 - Fixes issue where boost_boost_is_cacheable wasn't run if...

Issue #1356424 - Fixes issue where boost_boost_is_cacheable wasn't run if another module implements that hook.
parent 769d0bcc
......@@ -498,10 +498,13 @@ function boost_is_cacheable($parts) {
// Invoke hook_boost_is_cacheable($path).
$modules = boost_module_implements('boost_is_cacheable', 'boost');
foreach ($modules as $module) {
if (($result = module_invoke($module, 'boost_is_cacheable', $parts)) !== NULL) {
$result = module_invoke($module, 'boost_is_cacheable', $parts);
if ($result['is_cacheable'] === FALSE) {
return $result;
}
}
return $result;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment