When adding or deleting a conference center clear memcache correctly.
This commit is contained in:
@@ -257,16 +257,20 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||||||
$sql .= "and dialplan_uuid = '$dialplan_uuid' ";
|
$sql .= "and dialplan_uuid = '$dialplan_uuid' ";
|
||||||
$db->query($sql);
|
$db->query($sql);
|
||||||
|
|
||||||
//clear the cache
|
//syncrhonize configuration
|
||||||
$cache = new cache;
|
|
||||||
$cache->delete("memcache delete dialplan:".$_SESSION["context"]."@".$_SESSION['domain_name']);
|
|
||||||
|
|
||||||
//save the xml
|
|
||||||
save_dialplan_xml();
|
save_dialplan_xml();
|
||||||
|
|
||||||
$_SESSION["message"] = $text['message-update'];
|
//apply settings reminder
|
||||||
header("Location: conference_centers.php");
|
$_SESSION["reload_xml"] = true;
|
||||||
return;
|
|
||||||
|
//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 ($action == "update")
|
||||||
} //if ($_POST["persistformvar"] != "true")
|
} //if ($_POST["persistformvar"] != "true")
|
||||||
} //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
|
} //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
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.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
|
|||||||
Reference in New Issue
Block a user