Commit eacffe26 authored by bgm's avatar bgm

Issue #2135835: in hook_expire_cache(), check whether the boost cache is...

Issue #2135835: in hook_expire_cache(), check whether the boost cache is enabled before trying to expire the cache for the given url.
parent c2700b45
......@@ -388,6 +388,11 @@ function boost_expire_cache($urls) {
$boost['header_info'] = boost_get_header_info();
$boost['matched_header_info'] = boost_match_header_attributes($boost['header_info']);
// Issue #2135835 Cache may not be enabled for this type (html/xml/ajax)
if (! $boost['matched_header_info']['enabled']) {
continue;
}
$filename = (isset($boost['filename']) ? $boost['filename'] . '.' . $boost['matched_header_info']['extension'] : NULL);
if ($filename && file_exists($filename)) {
......
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