mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Clear cache on all indexes before computing
This commit is contained in:
committed by
Dan Christian Bogos
parent
9318298369
commit
d9c87ced89
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user