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

+5
View File
@@ -284,6 +284,11 @@ class SnapshotService:
self._run_backup(cfg, stat_date, summary)
if summary.success or summary.removed or summary.failed:
self.repo.bump_cache_version("videos")
if summary.fans_ok or summary.fans_failed:
self.repo.bump_cache_version("fans")
summary.finished_at = self._now()
self._log(
"info" if summary.completed else "warning",