diff --git a/lib/NGCP/Panel/Controller/Sound.pm b/lib/NGCP/Panel/Controller/Sound.pm index 9a32af8ba5..b9c514b799 100644 --- a/lib/NGCP/Panel/Controller/Sound.pm +++ b/lib/NGCP/Panel/Controller/Sound.pm @@ -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});