clear_setting_cache() immediately

This commit is contained in:
xiaomlove
2022-09-08 22:01:30 +08:00
parent 57a97f2b5c
commit 55589c8d8e
3 changed files with 2 additions and 1 deletions

View File

@@ -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);
}

View File

@@ -568,6 +568,7 @@ class Install
$this->doLog("[SAVE SETTING], prefix: $prefix, nameAndValues: " . json_encode($group));
saveSetting($prefix, $group);
}
}
public function createSymbolicLinks($symbolicLinks)

View File

@@ -11,7 +11,6 @@ permissiondenied();
function go_back()
{
global $lang_settings;
clear_setting_cache();
stdmsg($lang_settings['std_message'], $lang_settings['std_click']."<a class=\"altlink\" href=\"settings.php\">".$lang_settings['std_here']."</a>".$lang_settings['std_to_go_back']);
}