瀏覽代碼

fix(dashboard-plugin): Update cache TTL for metrics to 2 hours

David Höck 6 月之前
父節點
當前提交
2a5abe51ff
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/dashboard-plugin/src/service/metrics.service.ts

+ 1 - 1
packages/dashboard-plugin/src/service/metrics.service.ts

@@ -97,7 +97,7 @@ export class MetricsService {
                 entries,
             });
         }
-        await this.cacheService.set(cacheKey, metrics, { ttl: 1000 * 60 * 60 * 24 });
+        await this.cacheService.set(cacheKey, metrics, { ttl: 1000 * 60 * 60 * 2 }); // 2 hours
         return metrics;
     }