diff --git a/app/phrases/phrase_edit.php b/app/phrases/phrase_edit.php index 3f25998468..e1bdc16774 100644 --- a/app/phrases/phrase_edit.php +++ b/app/phrases/phrase_edit.php @@ -162,12 +162,10 @@ //save the xml to the file system if the phrase directory is set //save_phrases_xml(); - //delete the phrase from memcache + //clear the cache $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); - } + $cache = new cache; + $cache->delete("languages:".$phrase_language); //send a redirect message::add($text['message-add']);