Skip to content

Commit

Permalink
reduce market asset cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jonator committed Jan 21, 2025
1 parent 7b03c95 commit e5cddd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/queries/complex/assets/market.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function getMarketAsset<TAsset extends MinimalAsset>({
const assetMarket = await cachified({
cache: marketInfoCache,
key: `market-asset-${asset.coinMinimalDenom}`,
ttl: 1000 * 60 * 5, // 5 minutes
ttl: 1000 * 30, // 30 seconds
getFreshValue: async () => {
const [assetMarketActivity, totalSupply] = await Promise.all([
getAssetMarketActivity(asset).catch((e) =>
Expand Down

0 comments on commit e5cddd8

Please sign in to comment.