diff --git a/boost.module b/boost.module index c56fdf9d9e2bc211bc55f8aefb860075f7f10034..a05e5941b84c4ae0042f532ba129fe8bf66ce2a4 100644 --- a/boost.module +++ b/boost.module @@ -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)) {