fix: modbus/read service cache key ignores read parameters (#32499)
This commit is contained in:
parent
7f2aee0725
commit
4635fe04dd
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue