homebridge-homematic icon indicating copy to clipboard operation
homebridge-homematic copied to clipboard

make platform level cache expire after 60s

Open GrimmiMeloni opened this issue 2 years ago • 1 comments

suggested simple fix for #717 Adds a timestamp to the cached entries, and considers them outdated after 60s. This should protect the CCU/Rega from any bursts, but still allows updates to show in a reasonable time. I guess a 1 minute old value is still better than no updates at all.

No fancy stuff in here like async cache eviction, but gets the job done.

GrimmiMeloni avatar Sep 27 '22 06:09 GrimmiMeloni

Tested and works

redtom13 avatar Apr 23 '24 12:04 redtom13