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

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