Add garbage collection after raid has been generated

This commit is contained in:
Chomp
2025-01-28 10:14:08 +00:00
parent e04105c60c
commit 73c48305a1
@@ -175,10 +175,12 @@ public class LocationLifecycleService
AdjustExtracts(request.PlayerSide, request.Location, result.LocationLoot);
// Clear bot cache ready for a fresh raid
// Clear bot cache ready for next raid after this
_botGenerationCacheService.ClearStoredBots();
_botNameService.ClearNameCache();
GC.Collect(GC.MaxGeneration, GCCollectionMode.Aggressive, true, true);
return result;
}