Skip to content

Commit 7b07886

Browse files
authored
Merge pull request #2966 from pyth-network/fix/uncache-method
fix: uncache getHistoricalPrices
2 parents 8bffa91 + edae87d commit 7b07886

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

apps/insights/src/services/clickhouse.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ const _getPublisherRankingHistory = async ({
213213
},
214214
);
215215

216+
// note that this is not cached as the `from`/`to` params are unix timestamps
216217
export const getFeedScoreHistory = async ({
217218
cluster,
218219
publisherKey,
@@ -335,7 +336,8 @@ export const _getPublisherAverageScoreHistory = async ({
335336
},
336337
);
337338

338-
const _getHistoricalPrices = async ({
339+
// note that this is not cached as the `until` param is a unix timestamp
340+
export const getHistoricalPrices = async ({
339341
symbol,
340342
until,
341343
}: {
@@ -402,11 +404,6 @@ export const getPublisherRankingHistory = redisCache.define(
402404
_getPublisherRankingHistory,
403405
).getPublisherRankingHistory;
404406

405-
export const getHistoricalPrices = redisCache.define(
406-
"getHistoricalPrices",
407-
_getHistoricalPrices,
408-
).getHistoricalPrices;
409-
410407
export const getFeedPriceHistory = redisCache.define(
411408
"getFeedPriceHistory",
412409
_getFeedPriceHistory,

0 commit comments

Comments
 (0)