diff --git a/.env.example b/.env.example index fa3ed158..4e9f0406 100644 --- a/.env.example +++ b/.env.example @@ -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 diff --git a/include/globalfunctions.php b/include/globalfunctions.php index cf994879..bda135ce 100644 --- a/include/globalfunctions.php +++ b/include/globalfunctions.php @@ -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"); + } } /**