aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/actions
diff options
context:
space:
mode:
Diffstat (limited to 'mod/developers/actions')
-rw-r--r--mod/developers/actions/developers/settings.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/mod/developers/actions/developers/settings.php b/mod/developers/actions/developers/settings.php
index 56509282f..d8be34866 100644
--- a/mod/developers/actions/developers/settings.php
+++ b/mod/developers/actions/developers/settings.php
@@ -3,4 +3,27 @@
* Save the developer settings
*/
+$site = elgg_get_site_entity();
+
+if (get_input('simple_cache')) {
+ elgg_enable_simplecache();
+} else {
+ elgg_disable_simplecache();
+}
+
+if (get_input('view_path_cache')) {
+ elgg_enable_filepath_cache();
+} else {
+ elgg_disable_filepath_cache();
+}
+
+elgg_set_plugin_setting('display_errors', get_input('display_errors'), 'developers');
+
+$debug = get_input('debug_level');
+if ($debug) {
+ set_config('debug', $debug, $site->getGUID());
+} else {
+ unset_config('debug', $site->getGUID());
+}
+
forward(REFERER);