From d9c87ced8925cfb0e97c26faedc6a25b95a0eda4 Mon Sep 17 00:00:00 2001 From: porosnicuadrian Date: Fri, 27 Aug 2021 17:09:57 +0300 Subject: [PATCH] Clear cache on all indexes before computing --- engine/libindex.go | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/libindex.go b/engine/libindex.go index c4a0711e4..914be9a82 100644 --- a/engine/libindex.go +++ b/engine/libindex.go @@ -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