From 15fbc2535159244951f004eb673df90b224879b0 Mon Sep 17 00:00:00 2001 From: DanB Date: Thu, 22 Sep 2022 15:37:10 +0200 Subject: [PATCH] DispatcherS - cache routeID with dispatcherProfile as group --- dispatchers/libdispatcher.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dispatchers/libdispatcher.go b/dispatchers/libdispatcher.go index e4607c330..65c0a0c77 100644 --- a/dispatchers/libdispatcher.go +++ b/dispatchers/libdispatcher.go @@ -469,9 +469,10 @@ func callDH(ctx *context.Context, utils.MetaSubsys: utils.MetaDispatchers, utils.MetaNodeID: cfg.GeneralCfg().NodeID, }, - CacheID: utils.CacheDispatcherRoutes, - ItemID: routeID, - Value: dR, + CacheID: utils.CacheDispatcherRoutes, + ItemID: routeID, + Value: dR, + GroupIDs: []string{utils.ConcatenatedKey(utils.CacheDispatcherProfiles, dR.Tenant, dR.ProfileID)}, } if err = engine.Cache.SetWithReplicate(ctx, argsCache); err != nil { return