From e58e91e7fae6ca0f837b4245d5e90f25fd5509e8 Mon Sep 17 00:00:00 2001 From: xqw8889 Date: Wed, 1 May 2024 00:16:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E8=AE=BA=E5=9D=9B=E9=9A=90=E7=A7=81=E6=97=A0=E6=B3=95=E5=AE=9E?= =?UTF-8?q?=E6=97=B6=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Repositories/SettingRepository.php | 1 + include/globalfunctions.php | 1 + 2 files changed, 2 insertions(+) diff --git a/app/Repositories/SettingRepository.php b/app/Repositories/SettingRepository.php index c483fbc14..fe92bc936 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 c821af7cf..e976e365c 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");