MOH: Include clear cache on class delete() method.
This commit is contained in:
@@ -279,7 +279,6 @@ if (!class_exists('switch_music_on_hold')) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
unset($array);
|
unset($array);
|
||||||
// view_array($moh);
|
|
||||||
|
|
||||||
//loop checked records
|
//loop checked records
|
||||||
$files_deleted = 0;
|
$files_deleted = 0;
|
||||||
@@ -359,6 +358,10 @@ if (!class_exists('switch_music_on_hold')) {
|
|||||||
|
|
||||||
//post delete
|
//post delete
|
||||||
if ($moh_deleted || $files_deleted) {
|
if ($moh_deleted || $files_deleted) {
|
||||||
|
//clear the cache
|
||||||
|
$cache = new cache;
|
||||||
|
$cache->delete("configuration:local_stream.conf");
|
||||||
|
|
||||||
//reload moh
|
//reload moh
|
||||||
$this->reload();
|
$this->reload();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user