Update dashboard cache timestamp to use monotonic time

This commit is contained in:
dirwin31
2026-08-20 14:54:37 -07:00
parent a0cf285394
commit 960d676fc8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -6413,7 +6413,7 @@ def setup(app):
"dashboard": dashboard_stats,
}
_STATS_RESPONSE_CACHE.update({
"updated_at": cache_now,
"updated_at": time.monotonic(),
"payload": payload,
})
return payload
+1 -1
View File
@@ -2863,7 +2863,7 @@ def get_dashboard_stats(footage_paths, params_obj=None, now=None):
_DASHBOARD_CACHE.update({
"key": cache_key,
"updated_at": cache_now,
"updated_at": time.monotonic(),,
"value": copy.deepcopy(dashboard),
})
return dashboard