From 30736b00ab3a04efe9e784e16700671b839583f1 Mon Sep 17 00:00:00 2001 From: Mark J Crane Date: Fri, 13 Feb 2026 11:53:17 -0700 Subject: [PATCH] Clear the contact caller_id cache when the contact on update. --- core/contacts/contact_edit.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/contacts/contact_edit.php b/core/contacts/contact_edit.php index f626576722..ab25d52097 100644 --- a/core/contacts/contact_edit.php +++ b/core/contacts/contact_edit.php @@ -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