perf: cache static assets and validate only requested refresh regions

This commit is contained in:
abaishu0730 committed 2026-10-28 12:11:19 +08:00
1 parent f317314a3c
commit 73773f9526
31 files changed
+554 -41

No files matched your search

+1
View File
@@ -18,6 +18,7 @@ class StorageStore{
INSERT OR IGNORE INTO settings VALUES(1,'{"serverId":"","enabled":false,"since":null}');
CREATE TABLE IF NOT EXISTS archives(id TEXT PRIMARY KEY,server_id TEXT NOT NULL,job_id TEXT NOT NULL,status TEXT NOT NULL,value TEXT NOT NULL,UNIQUE(server_id,job_id));
UPDATE archives SET status='interrupted' WHERE status='running';`);
require('../../shared/refresh-revisions.cjs').installRevisionTracking(this.db,['servers','settings','archives']);
} catch(error) {
try { this.db?.close(); } catch {}
try { this.vault?.destroy(); } catch {}