From 52b6fde352fd0282a8a3ddfc3f2ff218d97f7dbb Mon Sep 17 00:00:00 2001 From: marcus Date: Tue, 3 Mar 2009 11:18:09 +0000 Subject: Closes #831: Plugin view location is now cached in a file in dataroot and is invalidated on upgrade and plugin enable/disable/reorder. This means that views no longer have to be discovered on boot - reducing file IO from crazy amounts to 1. This also helps make adding new plugins a linear event. git-svn-id: https://code.elgg.org/elgg/trunk@3025 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/admin/plugins/enableall.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'actions/admin/plugins/enableall.php') 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; -- cgit v1.2.3