Skip to content

Commit

Permalink
don't use cache if block tag is pending or latest
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlincecum committed Jun 25, 2024
1 parent 3a68b4b commit a7e7de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/abstract-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ export class AbstractProvider<C = FetchRequest> implements Provider {
const tag = getTag(req.method, req);

let perform = this.#performCache.get(tag);
if (!perform) {
if (!perform || tag.includes('pending') || tag.includes('latest')) {
perform = this._perform(req);

this.#performCache.set(tag, perform);
Expand Down

0 comments on commit a7e7de0

Please sign in to comment.