Normalize cache after realm resolution

This commit is contained in:
Dusk-92
2026-09-01 14:29:11 +02:00
parent 63603c9994
commit 4329f0603a
+3 -2
View File
@@ -169,8 +169,9 @@ local function MigrateLegacyPlayerCaches(playerdb, realmdb, realm)
-- Normally this is a one-time migration. Still check both legacy sources: -- Normally this is a one-time migration. Still check both legacy sources:
-- the first global-cache test may become available after an earlier cache -- the first global-cache test may become available after an earlier cache
-- lookup, and must not be postponed until PLAYER_LOGOUT. -- lookup, and must not be postponed until PLAYER_LOGOUT.
if cacheMigrationDone and not perCharacterPlayers and if cacheMigrationDone and normalizedRealm == realm
not (oldGlobalPlayers and next(oldGlobalPlayers)) and not perCharacterPlayers
and not (oldGlobalPlayers and next(oldGlobalPlayers))
then then
return return
end end