Merge pull request #1118 from moteus/clear_cache_number_alias

Fix. clear cache also for number_alias.
This commit is contained in:
FusionPBX
2015-08-21 11:33:03 -06:00

View File

@@ -743,6 +743,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//clear the cache
$cache = new cache;
$cache->delete("directory:".$extension."@".$user_context);
if (strlen($number_alias) > 0) {
$cache->delete("directory:".$number_alias."@".$user_context);
}
}
//show the action and redirect the user