From fbff4fb615fc2425c6220aeb25f0f8eef0654b94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Pr=C3=A9vost?= <998369+prevostc@users.noreply.github.com> Date: Mon, 30 Sep 2024 11:47:44 +0200 Subject: [PATCH] Fix cache key --- src/routes/v1/vault.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/v1/vault.ts b/src/routes/v1/vault.ts index 8cd173d..5cfd4aa 100644 --- a/src/routes/v1/vault.ts +++ b/src/routes/v1/vault.ts @@ -50,7 +50,7 @@ export default async function ( } const result = await asyncCache.wrap( - `vault:${chain}:${vault_id}:holders`, + `vault:${chain}:${vault_id}:${block_number}:holders`, 5 * 60 * 1000, async () => await getVaultHolders(chain, vault_id, BigInt(block_number)) );