summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathieu Lutfy2013-11-25 14:27:23 (GMT)
committerMathieu Lutfy2013-11-25 14:27:23 (GMT)
commiteacffe262fe3fda5f75c6c662b3aaa488b4129a6 (patch)
tree378e4879b33b10e40b74e98f0565321b0b41aa9c
parentc2700b4512fbd74d2e0c9b1a170309cc2fc3d7df (diff)
Issue #2135835: in hook_expire_cache(), check whether the boost cache is enabled before trying to expire the cache for the given url.7.x-1.0
-rw-r--r--boost.module5
1 files changed, 5 insertions, 0 deletions
diff --git a/boost.module b/boost.module
index c56fdf9..a05e594 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)) {