From 471572658ab4c568b3b22a4e4d254a349451644b Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 24 Jul 2018 16:21:32 -0500 Subject: [PATCH] Update gateway_edit.php --- app/gateways/gateway_edit.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/gateways/gateway_edit.php b/app/gateways/gateway_edit.php index d10f6c593e..b109ff50b3 100644 --- a/app/gateways/gateway_edit.php +++ b/app/gateways/gateway_edit.php @@ -245,13 +245,9 @@ //syncrhonize configuration save_gateway_xml(); - //delete the sip profiles from memcache - $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); - if ($fp) { - $hostname = trim(event_socket_request($fp, 'api switchname')); - $switch_cmd = "memcache delete configuration:sofia.conf:".$hostname; - $switch_result = event_socket_request($fp, 'api '.$switch_cmd); - } + //clear the cache + $cache = new cache; + $cache->delete("configuration:sofia.conf:".$_SESSION['domain_name']); //rescan the external profile to look for new or stopped gateways //create the event socket connection