When adding or deleting a conference center clear memcache correctly.

This commit is contained in:
Mark Crane
2015-01-29 10:17:56 +00:00
parent 37e5339fd3
commit d9ff915ec2
2 changed files with 13 additions and 9 deletions

View File

@@ -257,16 +257,20 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "and dialplan_uuid = '$dialplan_uuid' ";
$db->query($sql);
//clear the cache
$cache = new cache;
$cache->delete("memcache delete dialplan:".$_SESSION["context"]."@".$_SESSION['domain_name']);
//save the xml
//syncrhonize configuration
save_dialplan_xml();
$_SESSION["message"] = $text['message-update'];
header("Location: conference_centers.php");
return;
//apply settings reminder
$_SESSION["reload_xml"] = true;
//clear the cache
$cache = new cache;
$cache->delete("dialplan:".$_SESSION["context"]);
//redirect the browser
$_SESSION["message"] = $text['message-update'];
header("Location: conference_centers.php");
return;
} //if ($action == "update")
} //if ($_POST["persistformvar"] != "true")
} //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)

View File

@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2012
Portions created by the Initial Developer are Copyright (C) 2008-2014
the Initial Developer. All Rights Reserved.
Contributor(s):