Clear the cache

This commit is contained in:
FusionPBX 2024-06-13 14:17:50 -06:00 committed by GitHub
parent 9a55466677
commit dd4cde850d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 20 additions and 3 deletions

View File

@ -261,12 +261,29 @@
//redirect the user //redirect the user
if (isset($action)) { 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") { if ($action == "add") {
$_SESSION["message"] = $text['message-add']; //save the message to a session variable
message::add($text['message-add']);
} }
if ($action == "update") { 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.php');
header('Location: fifo_edit.php?id='.urlencode($fifo_uuid)); header('Location: fifo_edit.php?id='.urlencode($fifo_uuid));
return; return;
@ -636,4 +653,4 @@
//include the footer //include the footer
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>