Check if everything works as before (remove an item, refund when destroy the prod.'s entity., etc.)
A way to test the "clear cached entities" thing:
- Map: Sandbox - The Athenians
- Unit: 1 Trireme.
- Technology: Iphicratean Reforms (to be able to create mercenaries in ship).
Without patch:
1) Stay away from the mainland with the ship.
2) Add units in many batchs.
3) Wait the first batch ends and then the units can't spawn.
(Among other things we should be able to spawn units in autogarnison if free slots but it's not the diff for that)
4) Print the actual entityCache values.
5) Remove a batch that isn't the first element.
6) Print the entityCache and notice values aren't the same.