From de9fc52c6411e084db3ce6ad703edd11937f7bea Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Tue, 7 Jan 2014 20:13:11 +0100 Subject: [PATCH] MT#5575 Clear audio cache on sems-pbx too. --- lib/NGCP/Panel/Controller/Sound.pm | 3 +++ 1 file changed, 3 insertions(+) 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});