mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-31 13:13:44 +08:00
Update dashboard cache timestamp to use monotonic time
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user