From c70bec82f3dec9ab9fc0aeae5f5bba58fdc86567 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 5 Feb 2019 10:31:55 -0700 Subject: [PATCH] Update gateway_copy.php --- app/gateways/gateway_copy.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/gateways/gateway_copy.php b/app/gateways/gateway_copy.php index c696990ee4..493108d6e7 100644 --- a/app/gateways/gateway_copy.php +++ b/app/gateways/gateway_copy.php @@ -171,6 +171,12 @@ //synchronize the xml config save_gateway_xml(); +//clear the cache + $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); + $hostname = trim(event_socket_request($fp, 'api switchname')); + $cache = new cache; + $cache->delete("configuration:sofia.conf:".$hostname); + //redirect the user message::add($text['message-copy']); header("Location: gateways.php");