Update phrase_detail_delete.php
This commit is contained in:
parent
7e20bc9951
commit
01bbccb706
|
|
@ -58,15 +58,12 @@ else {
|
|||
//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);
|
||||
|
||||
//redirect the user
|
||||
message::add($text['message-delete']);
|
||||
header('Location: phrase_edit.php?id='.$phrase_uuid);
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue