From dd4cde850d54a0e2530a8e961baae4e84e70cf80 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 13 Jun 2024 14:17:50 -0600 Subject: [PATCH] Clear the cache --- app/fifo/fifo_edit.php | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/app/fifo/fifo_edit.php b/app/fifo/fifo_edit.php index b2ad1cd9df..bd2f970020 100644 --- a/app/fifo/fifo_edit.php +++ b/app/fifo/fifo_edit.php @@ -261,12 +261,29 @@ //redirect the user if (isset($action)) { + + //apply settings reminder + $_SESSION["reload_xml"] = true; + + //clear the cache + $cache = new cache; + $cache->delete("dialplan:".$_SESSION['domain_name']); + + //clear the destinations session array + if (isset($_SESSION['destinations']['array'])) { + unset($_SESSION['destinations']['array']); + } + + //set the message if ($action == "add") { - $_SESSION["message"] = $text['message-add']; + //save the message to a session variable + message::add($text['message-add']); } if ($action == "update") { - $_SESSION["message"] = $text['message-update']; + //save the message to a session variable + message::add($text['message-update']); } + //header('Location: fifo.php'); header('Location: fifo_edit.php?id='.urlencode($fifo_uuid)); return; @@ -636,4 +653,4 @@ //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?>