dialplan xml fix cache delete when editing global dialplans
This commit is contained in:
parent
44a5809319
commit
1205e89796
|
|
@ -92,8 +92,11 @@
|
||||||
$database->save($array);
|
$database->save($array);
|
||||||
unset($array);
|
unset($array);
|
||||||
|
|
||||||
//clear the cache
|
//clear the cache
|
||||||
$cache = new cache;
|
$cache = new cache;
|
||||||
|
if ($dialplan_context == "\${domain_name}" or $dialplan_context == "global") {
|
||||||
|
$dialplan_context = "*";
|
||||||
|
}
|
||||||
$cache->delete("dialplan:".$dialplan_context);
|
$cache->delete("dialplan:".$dialplan_context);
|
||||||
|
|
||||||
//save the message to a session variable
|
//save the message to a session variable
|
||||||
|
|
@ -320,4 +323,4 @@
|
||||||
//show the footer
|
//show the footer
|
||||||
require_once "resources/footer.php";
|
require_once "resources/footer.php";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue