aboutsummaryrefslogtreecommitdiff
path: root/actions/admin/plugins/simple_update_states.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/admin/plugins/simple_update_states.php')
-rw-r--r--actions/admin/plugins/simple_update_states.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/actions/admin/plugins/simple_update_states.php b/actions/admin/plugins/simple_update_states.php
index 1945868f2..d9d8fd3e8 100644
--- a/actions/admin/plugins/simple_update_states.php
+++ b/actions/admin/plugins/simple_update_states.php
@@ -44,8 +44,9 @@ if ($success) {
register_error(elgg_echo('admins:plugins:simple_simple_fail'));
}
-// 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']); \ No newline at end of file