dep. update, set cache in demo_loader

This commit is contained in:
2021-10-24 07:41:54 +02:00
parent 3124a849f1
commit 9e08c80da5
4 changed files with 6 additions and 2 deletions

View File

@@ -492,7 +492,8 @@ func (d *DemoMatchLoader) gcWorker(apiKey string, rl ratelimit.Limiter) {
// clear cache for player
for _, p := range players {
_ = d.cache.Delete(context.Background(), fmt.Sprintf(utils.SideMetaCacheKey, p.ID))
// TODO: cache only real meta stats in only one key
_ = d.cache.Delete(context.Background(), fmt.Sprintf(utils.SideMetaCacheKey, p.ID, 4))
_ = d.cache.Delete(context.Background(), fmt.Sprintf(utils.MatchMetaCacheKey, p.ID))
}