aboutsummaryrefslogtreecommitdiff
path: root/actions/admin/plugins/disable.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/admin/plugins/disable.php')
-rw-r--r--actions/admin/plugins/disable.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/actions/admin/plugins/disable.php b/actions/admin/plugins/disable.php
index 3207e6800..5ad49d2c7 100644
--- a/actions/admin/plugins/disable.php
+++ b/actions/admin/plugins/disable.php
@@ -27,8 +27,9 @@ foreach ($plugin as $p) {
}
}
-// need to reset caches for new view locations and cached view output.
-elgg_view_regenerate_simplecache();
+// don't regenerate the simplecache because the plugin won't be
+// loaded until next run. Just invalidate and let it regnerate as needed
+elgg_invalidate_simplecache();
elgg_filepath_cache_reset();
forward($_SERVER['HTTP_REFERER']);