From e0956827f54a99088747516287133e7e0bd5f863 Mon Sep 17 00:00:00 2001 From: Conor Schaefer Date: Thu, 6 Feb 2025 08:05:09 -0800 Subject: [PATCH] fix: increase coingecko cache 1m -> 10m Refs #22. --- backend/cache/coinGeckoCache.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/cache/coinGeckoCache.ts b/backend/cache/coinGeckoCache.ts index 1cef37f..d1f9ffe 100644 --- a/backend/cache/coinGeckoCache.ts +++ b/backend/cache/coinGeckoCache.ts @@ -1,6 +1,7 @@ import type { Metadata } from "@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb"; -const COINGECKO_CACHE_TTL_MS = 60 * 1000; // one minute +// const COINGECKO_CACHE_TTL_MS = 60 * 1000; // one minute +const COINGECKO_CACHE_TTL_MS = 60 * 1000 * 10; // ten minutes // Small cache-aside layer for coin gecko (guecko? gekko?) prices. interface CacheEntry {