MT#5575 Clear audio cache on sems-pbx too.

agranig/auth-refactoring
Andreas Granig 11 years ago
parent ce01267079
commit de9fc52c64

@ -509,6 +509,9 @@ sub handles_edit :Chained('handles_base') :PathPart('edit') {
if($file_result->handle->group->name eq 'calling_card') {
try {
NGCP::Panel::Utils::Sems::clear_audio_cache("appserver", $file_result->set_id, $file_result->handle->name);
if($c->config->{features}->{cloudpbx}) {
NGCP::Panel::Utils::Sems::clear_audio_cache("pbx", $file_result->set_id, $file_result->handle->name);
}
} catch ($e) {
$c->flash(messages => [{type => 'error', text => 'Failed to clear audio cache'}]);
NGCP::Panel::Utils::Navigation::back_or($c, $c->stash->{handles_base_uri});

Loading…
Cancel
Save