Clear cache on all indexes before computing

This commit is contained in:
porosnicuadrian
2021-08-27 17:09:57 +03:00
committed by Dan Christian Bogos
parent 9318298369
commit d9c87ced89

View File

@@ -399,6 +399,7 @@ func ComputeIndexes(dm *DataManager, tnt, ctx, idxItmType string, IDs *[]string,
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(utils.CacheIndexesToPrefix[idxItmType]); err != nil {
return