Update ivr_menu.php

This commit is contained in:
FusionPBX 2019-02-05 18:35:35 -07:00 committed by GitHub
parent 1b4e080b53
commit c9787b0865
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

@ -280,12 +280,9 @@ include "root.php";
$database->where[1]['operator'] = '=';
$database->delete();
//delete the dialplan context from memcache
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
if ($fp) {
$switch_cmd = "memcache delete dialplan:".$_SESSION["context"];
$switch_result = event_socket_request($fp, 'api '.$switch_cmd);
}
//clear the cache
$cache = new cache;
$cache->delete("dialplan:".$_SESSION["context"]);
//commit the transaction
//$count = $database->db->exec("COMMIT;");