mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-03-16 13:32:14 +00:00
Remove the hostname prefix from the directory cache key
This commit is contained in:
@@ -235,17 +235,17 @@ if ( session:ready() ) then
|
||||
--clear the cache
|
||||
if (user_name ~= nil and context ~= nil) then
|
||||
if (cache.support()) then
|
||||
cache.del(hostname..":directory:"..user_name.."@"..context);
|
||||
cache.del("directory:"..user_name.."@"..context);
|
||||
if #number_alias > 0 then
|
||||
cache.del(hostname..":directory:"..number_alias.."@"..domain_name);
|
||||
cache.del("directory:"..number_alias.."@"..domain_name);
|
||||
end
|
||||
end
|
||||
end
|
||||
if (db_extension ~= nil and context ~= nil) then
|
||||
if (cache.support()) then
|
||||
cache.del(hostname..":directory:"..db_extension.."@"..context);
|
||||
cache.del("directory:"..db_extension.."@"..context);
|
||||
if #number_alias > 0 then
|
||||
cache.del(hostname..":directory:"..number_alias.."@"..domain_name);
|
||||
cache.del("directory:"..number_alias.."@"..domain_name);
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user