Update directory.lua

This commit is contained in:
FusionPBX 2016-08-08 09:45:16 -06:00 committed by GitHub
parent 99173fb638
commit 2afdd589b1
1 changed files with 4 additions and 6 deletions

View File

@ -517,12 +517,10 @@
result = trim(api:execute("memcache", "set directory:" .. user .. "@" .. domain_name .. " '"..XML_STRING:gsub("'", "'").."' "..expire["directory"]));
end
--send the xml to the console
if (debug["xml_string"]) then
local file = assert(io.open(temp_dir .. "/" .. user .. "@" .. domain_name .. ".xml", "w"));
file:write(XML_STRING);
file:close();
end
--save to the conf directory
local file = assert(io.open(conf_dir .. "/directory/" .. user .. "@" .. domain_name .. ".xml.cache", "w"));
file:write(XML_STRING);
file:close();
--send to the console
if (debug["cache"]) then