Merge pull request #256 from xqw8889/php8

修复:修改论坛隐私无法实时生效
This commit is contained in:
xiaomlove
2024-05-01 12:53:54 +08:00
committed by GitHub
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -52,6 +52,7 @@ class SettingRepository extends BaseRepository
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;
}
+1
View File
@@ -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");