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