mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Phrases: Remove phrase from memcache if phrase detail deleted.
This commit is contained in:
@@ -54,7 +54,15 @@ else {
|
||||
unset($sql);
|
||||
}
|
||||
|
||||
save_phrases_xml();
|
||||
//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);
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
$_SESSION['message'] = $text['message-delete'];
|
||||
|
||||
Reference in New Issue
Block a user