publish setting update

This commit is contained in:
lgb
2024-03-20 14:24:44 +08:00
parent 38ff708a26
commit 1c03902ea7
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -90,4 +90,4 @@ MEILISEARCH_MASTER_KEY=
CACHE_KEY_AGENT_ALLOW=all_agent_allows
CACHE_KEY_AGENT_DENY=all_agent_denies
CHANNEL_NAME_SETTING=channel_setting
+4
View File
@@ -1019,6 +1019,10 @@ 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');
$channel = nexus_env("CHANNEL_NAME_SETTING");
if (!empty($channel)) {
\Nexus\Database\NexusDB::redis()->publish($channel, "update");
}
}
/**