From 55589c8d8ed7bacfc6bde342bb025caccec38069 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Thu, 8 Sep 2022 22:01:30 +0800 Subject: [PATCH] clear_setting_cache() immediately --- include/functions.php | 1 + nexus/Install/Install.php | 1 + public/settings.php | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index 385b3559..6244ed4b 100644 --- a/include/functions.php +++ b/include/functions.php @@ -5169,6 +5169,7 @@ function saveSetting($prefix, $nameAndValue, $autoload = 'yes') } $sql .= implode(",", $data) . " on duplicate key update value = values(value)"; \Nexus\Database\NexusDB::statement($sql); + clear_setting_cache(); do_action("nexus_setting_update", $prefix, $nameAndValue); } diff --git a/nexus/Install/Install.php b/nexus/Install/Install.php index a610ad9a..61fdf0c0 100644 --- a/nexus/Install/Install.php +++ b/nexus/Install/Install.php @@ -568,6 +568,7 @@ class Install $this->doLog("[SAVE SETTING], prefix: $prefix, nameAndValues: " . json_encode($group)); saveSetting($prefix, $group); } + } public function createSymbolicLinks($symbolicLinks) diff --git a/public/settings.php b/public/settings.php index d0e31dcf..3e3c3c16 100644 --- a/public/settings.php +++ b/public/settings.php @@ -11,7 +11,6 @@ permissiondenied(); function go_back() { global $lang_settings; - clear_setting_cache(); stdmsg($lang_settings['std_message'], $lang_settings['std_click']."".$lang_settings['std_here']."".$lang_settings['std_to_go_back']); }