Remove the hostname prefix from the directory cache key

This commit is contained in:
FusionPBX
2026-03-04 11:55:42 -07:00
committed by GitHub
parent 9f56ac9e30
commit df54d9eed6
16 changed files with 46 additions and 46 deletions

View File

@@ -164,9 +164,9 @@ class call_forward {
//delete extension from the cache
$cache = new cache;
$cache->delete(gethostname() . ":directory:" . $this->extension . "@" . $this->domain_name);
$cache->delete("directory:" . $this->extension . "@" . $this->domain_name);
if (!empty($this->number_alias)) {
$cache->delete(gethostname() . ":directory:" . $this->number_alias . "@" . $this->domain_name);
$cache->delete("directory:" . $this->number_alias . "@" . $this->domain_name);
}
}
@@ -316,9 +316,9 @@ class call_forward {
//clear the cache
$cache = new cache;
foreach ($extensions as $uuid => $extension) {
$cache->delete(gethostname() . ":directory:" . $extension['extension'] . "@" . $_SESSION['domain_name']);
$cache->delete("directory:" . $extension['extension'] . "@" . $_SESSION['domain_name']);
if ($extension['number_alias'] != '') {
$cache->delete(gethostname() . ":directory:" . $extension['number_alias'] . "@" . $_SESSION['domain_name']);
$cache->delete("directory:" . $extension['number_alias'] . "@" . $_SESSION['domain_name']);
}
}