Update do_not_disturb.php

This commit is contained in:
FusionPBX 2019-10-24 02:48:29 -06:00 committed by GitHub
parent 58cdd4311b
commit 6f51113d69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -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);
}
}
}
?>
?>