Update phrase_detail_delete.php

This commit is contained in:
FusionPBX
2019-02-05 18:15:54 -07:00
committed by GitHub
parent 7e20bc9951
commit 01bbccb706
+3 -6
View File
@@ -58,12 +58,9 @@ else {
//save the xml to the file system if the phrase directory is set //save the xml to the file system if the phrase directory is set
save_phrases_xml(); 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']); $cache = new cache;
if ($fp) { $cache->delete("languages:".$phrase_language);
$switch_cmd .= "memcache delete languages:".$phrase_language;
$switch_result = event_socket_request($fp, 'api '.$switch_cmd);
}
//redirect the user //redirect the user
message::add($text['message-delete']); message::add($text['message-delete']);