Skip to content

Commit 9f03619

Browse files
committed
Don't overwrite new cached faction data with older cached faction data
1 parent 08707e1 commit 9f03619

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DataProviderService/FactionCache.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class FactionCache ( int expirationSeconds ) : SlidingExpirationCache<str
1212
public void AddOrUpdate ( Faction faction )
1313
{
1414
if ( faction == null ) { return; }
15-
if ( TryGet( faction.name, out var existing ) )
15+
if ( TryGet( faction.name, out var existing ) && faction.updatedAt > existing.updatedAt )
1616
{
1717
faction = PreservePresenceData( faction, existing );
1818
}

0 commit comments

Comments
 (0)