generated from apollographql/typescript-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
The current implementation will always check the cache regardless of what value is passed in for the ttl
.
Currently in the file /src/HTTPCache.ts
on line 78
there is no check of ttl
before reading from the cache:
const entry = await this.keyValueCache.get(cacheKey);
The ask would be to provide a conditional check on this line to bypass the read from the cache if ttl=0
as it is currently impacting the reported miss rate when trying to only inspect the miss rate for queries/request where the cache is actively used.
Metadata
Metadata
Assignees
Labels
No labels