mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-10 10:38:22 +00:00
Fix. Not found is treat as success for delete operation.
This commit is contained in:
@@ -56,7 +56,12 @@ end
|
||||
|
||||
function Cache.del(key)
|
||||
local result, err = check_error(api:execute("memcache", "set " .. key .. " '" .. value .. "' " .. expire))
|
||||
if not result then return nil, err end
|
||||
if not result then
|
||||
if err == 'NOT FOUND' then
|
||||
return true
|
||||
end
|
||||
return nil, err
|
||||
end
|
||||
return result == '+OK'
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user