Merge pull request #5752 from greenbea/patch-16

dialplan xml fix cache delete when editing global dialplans
This commit is contained in:
FusionPBX 2021-02-01 19:54:16 -07:00 committed by GitHub
commit 71f41d2211
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -92,8 +92,11 @@
$database->save($array);
unset($array);
//clear the cache
//clear the cache
$cache = new cache;
if ($dialplan_context == "\${domain_name}" or $dialplan_context == "global") {
$dialplan_context = "*";
}
$cache->delete("dialplan:".$dialplan_context);
//save the message to a session variable
@ -320,4 +323,4 @@
//show the footer
require_once "resources/footer.php";
?>
?>