Skip to content

Unable to prevent reading from the Cache #291

@JoeDevine

Description

@JoeDevine

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions