MOH: Include clear cache on class delete() method.

This commit is contained in:
Nate
2020-02-12 13:31:44 -07:00
parent 6df17f3fbc
commit 15fdaa86d2

View File

@@ -279,7 +279,6 @@ if (!class_exists('switch_music_on_hold')) {
}
}
unset($array);
// view_array($moh);
//loop checked records
$files_deleted = 0;
@@ -359,6 +358,10 @@ if (!class_exists('switch_music_on_hold')) {
//post delete
if ($moh_deleted || $files_deleted) {
//clear the cache
$cache = new cache;
$cache->delete("configuration:local_stream.conf");
//reload moh
$this->reload();