mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-14 07:05:02 +00:00
Clear the contact caller_id cache when the contact on update.
This commit is contained in:
@@ -406,6 +406,11 @@
|
||||
if (!empty($row["phone_speed_dial"])) {
|
||||
$cache = new cache;
|
||||
$cache->delete("app.dialplan.speed_dial.".$row["phone_speed_dial"]."@".$_SESSION['domain_name']);
|
||||
$cache->delete("app:caller_id:lookup:domain_name:" . $_SESSION['domain_name'] . ":" . $row["phone_number"]);
|
||||
if (!empty($row["phone_country_code"])) {
|
||||
$cache->delete("app:caller_id:lookup:domain_name:" . $_SESSION['domain_name'] . ":" . $row["phone_country_code"] . $row["phone_number"]);
|
||||
$cache->delete("app:caller_id:lookup:domain_name:" . $_SESSION['domain_name'] . ":+" . $row["phone_country_code"] . $row["phone_number"]);
|
||||
}
|
||||
}
|
||||
|
||||
//increment the row id
|
||||
|
||||
Reference in New Issue
Block a user