diff --git a/app/Repositories/SettingRepository.php b/app/Repositories/SettingRepository.php index c483fbc1..fe92bc93 100644 --- a/app/Repositories/SettingRepository.php +++ b/app/Repositories/SettingRepository.php @@ -52,6 +52,7 @@ public function store(array $params) do_log("sql: $sql, result: $result"); NexusDB::cache_del("nexus_settings_in_laravel"); NexusDB::cache_del("nexus_settings_in_nexus"); + NexusDB::cache_del('setting_protected_forum'); return $result; } diff --git a/include/globalfunctions.php b/include/globalfunctions.php index c821af7c..e976e365 100644 --- a/include/globalfunctions.php +++ b/include/globalfunctions.php @@ -1025,6 +1025,7 @@ function clear_setting_cache() do_log("clear_setting_cache"); \Nexus\Database\NexusDB::cache_del('nexus_settings_in_laravel'); \Nexus\Database\NexusDB::cache_del('nexus_settings_in_nexus'); + \Nexus\Database\NexusDB::cache_del('setting_protected_forum'); $channel = nexus_env("CHANNEL_NAME_SETTING"); if (!empty($channel)) { \Nexus\Database\NexusDB::redis()->publish($channel, "update");