From 838a0175632d7003bcb9f6f050a91ccd664c53ff Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 28 Sep 2026 16:10:12 -0400 Subject: [PATCH] Allow cachied sensor readings up to a second old. In the process of reworking cache logic, a temporary disabling was left in. Before the logic change, 'cache' of '1' meant 'True', but the intent was a max age to decline to reply. This allows very close together requests to be cached. --- confluent_server/aiohmi/redfish/oem/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/aiohmi/redfish/oem/generic.py b/confluent_server/aiohmi/redfish/oem/generic.py index e30feb11..81dff77f 100644 --- a/confluent_server/aiohmi/redfish/oem/generic.py +++ b/confluent_server/aiohmi/redfish/oem/generic.py @@ -1967,7 +1967,7 @@ class OEMHandler(object): if 'sensedata' in sensor: reading = sensor['sensedata'] else: - reading = await self._do_web_request(sensor['url'], cache=False) + reading = await self._do_web_request(sensor['url'], cache=1) return self._extract_reading(sensor, reading) async def get_sensor_data(self):