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

@@ -113,10 +113,10 @@
//delete extension from the cache
$cache = new cache;
if (!empty($row['extension'])) {
$cache->delete(gethostname().":directory:".$row['extension']."@".$_SESSION['user']['domain_name']);
$cache->delete("directory:".$row['extension']."@".$_SESSION['user']['domain_name']);
}
if (!empty($number_alias)) {
$cache->delete(gethostname().":directory:".$row['number_alias']."@".$_SESSION['user']['domain_name']);
$cache->delete("directory:".$row['number_alias']."@".$_SESSION['user']['domain_name']);
}
//incrment
@@ -134,10 +134,10 @@
//delete extension from the cache
$cache = new cache;
if (!empty($row['extension'])) {
$cache->delete(gethostname().":directory:".$row['extension']."@".$_SESSION['user']['domain_name']);
$cache->delete("directory:".$row['extension']."@".$_SESSION['user']['domain_name']);
}
if (!empty($number_alias)) {
$cache->delete(gethostname().":directory:".$row['number_alias']."@".$_SESSION['user']['domain_name']);
$cache->delete("directory:".$row['number_alias']."@".$_SESSION['user']['domain_name']);
}
//incrment
@@ -159,11 +159,11 @@
//delete extension from the cache
$cache = new cache;
if (!empty($extension)) {
$cache->delete(gethostname().":directory:".$extension."@".$this->domain_name);
$cache->delete(gethostname().":directory:".$extension."@".$domain_name);
$cache->delete("directory:".$extension."@".$this->domain_name);
$cache->delete("directory:".$extension."@".$domain_name);
}
if (!empty($number_alias)) {
$cache->delete(gethostname().":directory:".$number_alias."@".$this->domain_name);
$cache->delete("directory:".$number_alias."@".$this->domain_name);
}
}