From 4635fe04ddd8eef71ad494c74a7923b939c99fc3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 4 Aug 2026 06:57:21 +0000 Subject: [PATCH] fix: modbus/read service cache key ignores read parameters (#32499) --- util/service/modbus.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/service/modbus.go b/util/service/modbus.go index 213ce7f17..b5ca57729 100644 --- a/util/service/modbus.go +++ b/util/service/modbus.go @@ -68,8 +68,8 @@ func modbusRead(w http.ResponseWriter, req *http.Request) { return } - // Create cache key from connection string and register address - cacheKey := fmt.Sprintf("%s:%s:%d", query.URI, query.Device, query.Address) + // Cache per exact request: distinct id/encoding/scale/resulttype must not share a converted value + cacheKey := req.URL.Query().Encode() // Check cache first mu.RLock()