From 1205e897961943b3af78f04dc785f7ce72e56bd3 Mon Sep 17 00:00:00 2001 From: agree <37550360+greenbea@users.noreply.github.com> Date: Sun, 31 Jan 2021 16:08:29 -0500 Subject: [PATCH] dialplan xml fix cache delete when editing global dialplans --- app/dialplans/dialplan_xml.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/dialplans/dialplan_xml.php b/app/dialplans/dialplan_xml.php index 233561211e..2fea100426 100644 --- a/app/dialplans/dialplan_xml.php +++ b/app/dialplans/dialplan_xml.php @@ -92,8 +92,11 @@ $database->save($array); unset($array); - //clear the cache + //clear the cache $cache = new cache; + if ($dialplan_context == "\${domain_name}" or $dialplan_context == "global") { + $dialplan_context = "*"; + } $cache->delete("dialplan:".$dialplan_context); //save the message to a session variable @@ -320,4 +323,4 @@ //show the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?>