Add garbage collection after raid has been generated
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user