Cache key add hostname prefix

This commit is contained in:
FusionPBX
2025-10-15 21:39:03 -06:00
committed by GitHub
parent dda18481ec
commit 2023e40d99
17 changed files with 52 additions and 69 deletions

View File

@@ -240,16 +240,13 @@
}
//get the hostname
if ($sip_profile_hostname == '') {
$esl = event_socket::create();
if ($esl->is_connected()) {
$sip_profile_hostname = event_socket::api('switchname');
}
if (empty($sip_profile_hostname) {
$sip_profile_hostname = gethostname();
}
//clear the cache
$cache = new cache;
$cache->delete("configuration:sofia.conf:".$sip_profile_hostname);
$cache->delete($sip_profile_hostname.":configuration:sofia.conf");
//save the sip profile xml
save_sip_profile_xml();