Skip to content

Commit

Permalink
修复:修改论坛隐私无法实时生效
Browse files Browse the repository at this point in the history
  • Loading branch information
xqw8889 committed Apr 30, 2024
1 parent 47aba63 commit e58e91e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Repositories/SettingRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
1 change: 1 addition & 0 deletions include/globalfunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit e58e91e

Please sign in to comment.