From 0435138fc9d9f455b6b167d058691d2de5a58c19 Mon Sep 17 00:00:00 2001 From: charitha Date: Fri, 26 Feb 2021 14:57:16 +0530 Subject: [PATCH] Fix issue with updating status due to cache inconsistency --- .../mgt/core/service/DeviceManagementProviderServiceImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/service/DeviceManagementProviderServiceImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/service/DeviceManagementProviderServiceImpl.java index 8295ea965da..a622cf95d7b 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/service/DeviceManagementProviderServiceImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/service/DeviceManagementProviderServiceImpl.java @@ -2807,6 +2807,7 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv + deviceIdentifier.getType() + "'"); } boolean isDeviceUpdated; + this.removeDeviceFromCache(deviceIdentifier); Device device = getDevice(deviceIdentifier, false); int deviceId = device.getId(); EnrolmentInfo enrolmentInfo = device.getEnrolmentInfo();