feat(web): cache dashboard aggregations with version invalidation

This commit is contained in:
kairee committed 2026-11-01 03:27:49 +08:00
1 parent 91aa3e1f95
commit 9fd277c05f
15 files changed
+399 -30

No files matched your search

+2
View File
@@ -202,6 +202,8 @@ def import_fans_series(
ok=True,
captured_at=_day_timestamp(date.fromisoformat(day)),
)
if not dry_run and (inserted or updated or deleted):
repo.bump_cache_version("fans")
return {
"ok": True,
"dry_run": bool(dry_run),