remove parsed address cache

This commit is contained in:
Pierce 2023-09-16 01:38:39 -04:00
parent ceda1ebc83
commit 5f2866c2c4
No known key found for this signature in database
GPG Key ID: EC79465B0E865E47

View File

@ -59,18 +59,11 @@ function CFCHTTP.ReplaceURLs( text, f )
return html
end
---@type table<string, string>
local parsedAddressCache = {}
---@param url string
---@return string|nil
function CFCHTTP.GetAddress( url )
if not url then return end
local cached = parsedAddressCache[url]
if cached then return cached end
local data = CFCHTTP.ParseURL( url )
parsedAddressCache[url] = data.address
return data.address
end