diff --git a/panopoly_core.module b/panopoly_core.module
index d821597..015783c 100644
--- a/panopoly_core.module
+++ b/panopoly_core.module
@@ -125,11 +125,11 @@ function panopoly_core_modules_enabled($modules) {
 
   // Only run this logic if we are executing as part of an install profile
   // and only for this particular module.
-  if (drupal_installation_attempted() && in_array('panopoly_core', $modules)) {
+  if (variable_get('install_task', 'done') != 'done') {
 
     // Rebuild some caches so this all works right
-    taxonomy_features_rebuild('panopoly_core');
-    drupal_static_reset('panelizer_entity_plugin_get_handler');
+    features_flush_caches();
+    drupal_static_reset();
 
     // Define some permissions for the editor role
     if ($editor = user_role_load_by_name('editor')) {
