diff --git a/confluent_server/aiohmi/redfish/command.py b/confluent_server/aiohmi/redfish/command.py index f82f0f64..de6a813f 100644 --- a/confluent_server/aiohmi/redfish/command.py +++ b/confluent_server/aiohmi/redfish/command.py @@ -606,6 +606,12 @@ class Command(object): if payload is None and method is None: self._urlcache[url] = {'contents': res[0], 'vintage': os.times()[4]} + elif method != 'GET': + # A write may have changed anything, including documents other than + # the one written (an action url is not the resource it acts on), so + # do not let a cached read from before the write be handed out as + # the current state + self._urlcache.clear() return res[0] async def get_bootdev(self):