|
@@ -359,7 +359,7 @@ func (r *Registry) FindDeviceByIdentifier(identifier string, reply *models.Devic
|
|
|
|
|
|
cache := getCache()
|
|
cache := getCache()
|
|
cacheKey := fmt.Sprintf("Device:%v", identifier)
|
|
cacheKey := fmt.Sprintf("Device:%v", identifier)
|
|
- if cacheValue, ok := cache.Get(identifier); ok {
|
|
|
|
|
|
+ if cacheValue, ok := cache.Get(cacheKey); ok {
|
|
device := cacheValue.(*models.Device)
|
|
device := cacheValue.(*models.Device)
|
|
setDevice(reply, device)
|
|
setDevice(reply, device)
|
|
} else {
|
|
} else {
|