Fix. Clear the cache when callcenter config changed.

This commit is contained in:
Alexey Melnichuk
2015-09-28 12:10:31 +04:00
parent b374e5bdc5
commit 87441198b1
6 changed files with 20 additions and 2 deletions
+9
View File
@@ -158,6 +158,15 @@ function byte_convert($bytes, $decimals = 2) {
return $formattedbytes;
}
function remove_config_from_cache($name) {
$cache = new cache;
$cache->delete($name);
$hostname = trim(event_socket_request_cmd('api switchname'));
if($hostname){
$cache->delete($name . ':' . $hostname);
}
}
function ListFiles($dir) {
if($dh = opendir($dir)) {
$files = Array();