Cache clear for compute IDs before trying to compute indexes back

This commit is contained in:
porosnicuadrian
2021-08-26 17:13:19 +03:00
committed by Dan Christian Bogos
parent 9b6e32dd5a
commit 3d47076592

View File

@@ -270,6 +270,7 @@ func ComputeIndexes(ctx *context.Context, dm *DataManager, tnt, grp, idxItmType
indexes = make(utils.StringSet)
var profilesIDs []string
if IDs == nil { // get all items
Cache.Clear([]string{idxItmType})
var ids []string
if ids, err = dm.DataDB().GetKeysForPrefix(ctx, utils.CacheIndexesToPrefix[idxItmType]); err != nil {
return