mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
publish setting update
This commit is contained in:
+1
-1
@@ -90,4 +90,4 @@ MEILISEARCH_MASTER_KEY=
|
|||||||
|
|
||||||
CACHE_KEY_AGENT_ALLOW=all_agent_allows
|
CACHE_KEY_AGENT_ALLOW=all_agent_allows
|
||||||
CACHE_KEY_AGENT_DENY=all_agent_denies
|
CACHE_KEY_AGENT_DENY=all_agent_denies
|
||||||
|
CHANNEL_NAME_SETTING=channel_setting
|
||||||
|
|||||||
@@ -1019,6 +1019,10 @@ function clear_setting_cache()
|
|||||||
do_log("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_laravel');
|
||||||
\Nexus\Database\NexusDB::cache_del('nexus_settings_in_nexus');
|
\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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user