elseif type(opt) == 'table' then
local k = lua_util.table_digest(opt)
if maps_cache[k] then
- rspamd_logger.infox(rspamd_config, 'reuse url for %s(%s)',
- opt, mtype)
+ rspamd_logger.infox(rspamd_config, 'reuse url for complex map definition %s: %s',
+ k:sub(1,8), description)
return maps_cache[k]
end
if map then
ret.__data = map
setmetatable(ret, ret_mt)
+ maps_cache[k] = ret
return ret
end
else
if map then
ret.__data = map
setmetatable(ret, ret_mt)
+ maps_cache[k] = ret
return ret
end
end
if map then
ret.__data = map
setmetatable(ret, ret_mt)
+ maps_cache[k] = ret
return ret
end
else
if map then
ret.__data = map
setmetatable(ret, ret_mt)
+ maps_cache[k] = ret
return ret
end
end
if map then
ret.__data = map
setmetatable(ret, ret_mt)
+ maps_cache[k] = ret
return ret
end
else
return nil
end
+ maps_cache[k] = ret
return ret
else
-- Empty map, huh?
if map then
ret.__data = map
setmetatable(ret, ret_mt)
+ maps_cache[k] = ret
return ret
end
end -- opt[1]