Update ivr_menu.php

This commit is contained in:
FusionPBX
2019-02-05 18:35:35 -07:00
committed by GitHub
parent 9e9d9a6252
commit fbfd8703b0
+3 -6
View File
@@ -280,12 +280,9 @@ include "root.php";
$database->where[1]['operator'] = '='; $database->where[1]['operator'] = '=';
$database->delete(); $database->delete();
//delete the dialplan context from memcache //clear the cache
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); $cache = new cache;
if ($fp) { $cache->delete("dialplan:".$_SESSION["context"]);
$switch_cmd = "memcache delete dialplan:".$_SESSION["context"];
$switch_result = event_socket_request($fp, 'api '.$switch_cmd);
}
//commit the transaction //commit the transaction
//$count = $database->db->exec("COMMIT;"); //$count = $database->db->exec("COMMIT;");