mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 07:08:45 +05:00
Cache clear for compute IDs before trying to compute indexes back
This commit is contained in:
committed by
Dan Christian Bogos
parent
9b6e32dd5a
commit
3d47076592
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user