mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-03-17 05:52:11 +00:00
Remove the hostname prefix from the directory cache key
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user