The current implementation, and generally the idea of a CacheService, is chaotic and can easily lead to contradictions with what's actually in the DB (especially considering how it caches personal entity stats). It might be better to move this caching to the database context, and to have the database methods take care of caching.
The current implementation, and generally the idea of a
CacheService, is chaotic and can easily lead to contradictions with what's actually in the DB (especially considering how it caches personal entity stats). It might be better to move this caching to the database context, and to have the database methods take care of caching.