#565796: Warn if boost is not enabled.
authorMike Carper
Mon, 7 Sep 2009 07:50:36 +0000 (07:50 +0000)
committerMike Carper
Mon, 7 Sep 2009 07:50:36 +0000 (07:50 +0000)
boost.install

index 03c759d..b901dd5 100644 (file)
@@ -151,6 +151,14 @@ function boost_requirements($phase) {
           'value'       => $t('Boost crawler did not get a 200 response.'),
         );
       }
+      if (!BOOST_ENABLED) {
+          $requirements['boost_is_enabled'] = array(
+            'title'       => $t('Boost'),
+            'description' => $t('Boost is disabled. <a href="@performance">Enable</a> it.', array('@performance' => url('admin/settings/performance'))),
+            'severity'    => REQUIREMENT_WARNING,
+            'value'       => $t('Boost Disabled'),
+          );
+        }
       if (empty($requirements)) {
         $requirements['boost'] = array(
           'title'       => $t('Boost'),