From af02f5c9691d591f6e6aece34c2d72102f4ed2c2 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 5 Feb 2019 18:37:52 -0700 Subject: [PATCH] Update phrase_edit.php --- app/phrases/phrase_edit.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/phrases/phrase_edit.php b/app/phrases/phrase_edit.php index 33c6cb14b5..064024d67e 100644 --- a/app/phrases/phrase_edit.php +++ b/app/phrases/phrase_edit.php @@ -163,7 +163,6 @@ //save_phrases_xml(); //clear the cache - $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); $cache = new cache; $cache->delete("languages:".$phrase_language); @@ -229,12 +228,9 @@ //save the xml to the file system if the phrase directory is set save_phrases_xml(); - //delete the phrase 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 languages:".$phrase_language; - $switch_result = event_socket_request($fp, 'api '.$switch_cmd); - } + //clear the cache + $cache = new cache; + $cache->delete("languages:".$phrase_language); //send a redirect message::add($text['message-update']);