aboutsummaryrefslogtreecommitdiff
path: root/actions/admin/plugins/enableall.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/admin/plugins/enableall.php')
-rw-r--r--actions/admin/plugins/enableall.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/actions/admin/plugins/enableall.php b/actions/admin/plugins/enableall.php
index 5e0d8c3b5..f31b4593d 100644
--- a/actions/admin/plugins/enableall.php
+++ b/actions/admin/plugins/enableall.php
@@ -11,7 +11,7 @@
*/
require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php");
-
+
// block non-admin users
admin_gatekeeper();
@@ -29,7 +29,12 @@
register_error(sprintf(elgg_echo('admin:plugins:enable:no'), $p));
}
+ // Regen view cache
elgg_view_regenerate_simplecache();
+
+ // Regen paths cache
+ $cache = elgg_get_filepath_cache();
+ $cache->delete('view_paths');
forward($_SERVER['HTTP_REFERER']);
exit;