[core, mod_commands, mod_verto] small tweaks to cache stuff to allow clear from verto and allow no domain to imply the default domain

This commit is contained in:
Anthony Minessale
2020-11-09 03:49:30 +00:00
committed by Andrey Volk
parent f540bbbbe3
commit 39b3caacb5
3 changed files with 6 additions and 1 deletions
+4
View File
@@ -2010,6 +2010,10 @@ SWITCH_DECLARE(uint32_t) switch_xml_clear_user_cache(const char *key, const char
switch_mutex_lock(CACHE_MUTEX);
if (key && user_name && !domain_name) {
domain_name = switch_core_get_variable("domain");
}
if (key && user_name && domain_name) {
switch_snprintf(mega_key, sizeof(mega_key), "%s%s%s", key, user_name, domain_name);