From 6f51113d694255d24861372df167f2b8175fefac Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 24 Oct 2019 02:48:29 -0600 Subject: [PATCH] Update do_not_disturb.php --- app/calls/resources/classes/do_not_disturb.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/calls/resources/classes/do_not_disturb.php b/app/calls/resources/classes/do_not_disturb.php index 2149f8e1ad..82f1507564 100644 --- a/app/calls/resources/classes/do_not_disturb.php +++ b/app/calls/resources/classes/do_not_disturb.php @@ -113,7 +113,15 @@ include "root.php"; //revoke temporary permissions $p->delete('extension_edit', 'temp'); + + //delete extension from the cache + $cache = new cache; + $cache->delete("directory:".$this->extension."@".$this->domain_name); + if(strlen($this->number_alias) > 0){ + $cache->delete("directory:".$this->number_alias."@".$this->domain_name); + } + } } -?> \ No newline at end of file +?>