From 3da95b964b0d54606177e70b7753f386a28283f6 Mon Sep 17 00:00:00 2001 From: Ben Date: Sun, 7 Jun 2026 23:29:08 -0400 Subject: [PATCH] Restore lightweight info endpoint --- src/app.controller.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app.controller.ts b/src/app.controller.ts index 5b56eca..66559b2 100644 --- a/src/app.controller.ts +++ b/src/app.controller.ts @@ -43,7 +43,6 @@ export class AppController { return cachedResult; } - const blockData = await this.blocksService.getFoundBlocks(); const highScores = await this.addressSettingsService.getHighScores(); const poolAuthority = await this.stratumV2Service.getPoolAuthorityPublicKey(); @@ -79,7 +78,6 @@ export class AppController { blockData, userAgents, highScores, - accounting: await this.shareAccountingService.getPoolSummary(), sv2: { poolAuthorityPublicKey: poolAuthority.publicKey, authorityKeyConfigured: poolAuthority.configured @@ -87,8 +85,8 @@ export class AppController { uptime: this.uptime }; - // Keep online miner counts responsive after reconnect cleanup. - await this.setCached(CACHE_KEY, data, 15 * 1000); + // Match the pre-Timescale dashboard cache behavior; live accounting is exposed separately. + await this.setCached(CACHE_KEY, data, 5 * 60 * 1000); return data;