diff --git a/src/utils.ts b/src/utils.ts index 1884ddc9b..29c9e5a13 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -555,7 +555,7 @@ export const getRpcMethod = cache.cached( return await config.provider.send(method, props); }, (method, props) => JSON.stringify([method, props]), - { ttl: 2 * 60 * 1000 } + { ttl: 2 * 60 * 1000, max: 1000 } ); // Check whether the given path has a markdown file extension.