Exultant/Citadel — pull request #82 by erocs (2012-11-02 08:25:17+00:00)
Title: Improved DAO stats + force cache flush + partial OptimisticLockException fix

This partially fixes the OptimisticLockException you were seeing. I did see it happen once more with this code though so I need to track down that edge case.

New console commands. Of interest "ctcon daocachestats" and "ctcon daocachestatsslow". The latter could be slow when there are large numbers of reinforcements cached so it has a separate command. Also "ctcon forcecacheflush" will flush 5 caches to the DB. You can add a parameter to change the count, like "ctcon forcecacheflush 100", but the higher the number the longer it could take.