diff --git a/dispatchers/caches.go b/dispatchers/caches.go index ec5747918..1001021d4 100644 --- a/dispatchers/caches.go +++ b/dispatchers/caches.go @@ -231,8 +231,9 @@ func (dS *DispatcherService) CacheSv1ReloadCache(args utils.AttrReloadCacheWithA tnt = args.TenantArg.Tenant } var routeID *string - if args.RouteID != nil { - routeID = args.RouteID + if args.ArgDispatcher != nil && + args.ArgDispatcher.RouteID != nil { + routeID = args.ArgDispatcher.RouteID } if dS.attrS != nil { if args.ArgDispatcher == nil {