From ace2d9d9266ce82f75f16a0178f2d8c56c67e8fd Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 11 Jan 2018 13:41:45 -0700 Subject: [PATCH] Update music_on_hold_edit.php --- app/music_on_hold/music_on_hold_edit.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/music_on_hold/music_on_hold_edit.php b/app/music_on_hold/music_on_hold_edit.php index b74f38bf53..4550a71399 100644 --- a/app/music_on_hold/music_on_hold_edit.php +++ b/app/music_on_hold/music_on_hold_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2016 + Portions created by the Initial Developer are Copyright (C) 2016-2018 the Initial Developer. All Rights Reserved. Contributor(s): @@ -148,6 +148,10 @@ $db->exec(check_sql($sql)); unset($sql); + //clear the cache + $cache = new cache; + $cache->delete("configuration:local_stream.conf"); + //reload mod local stream $music = new switch_music_on_hold; $music->reload(); @@ -186,6 +190,10 @@ $db->exec(check_sql($sql)); unset($sql); + //clear the cache + $cache = new cache; + $cache->delete("configuration:local_stream.conf"); + //reload mod local stream $music = new switch_music_on_hold; $music->reload();