apollo-datasource-http icon indicating copy to clipboard operation
apollo-datasource-http copied to clipboard

[Proposal] Make the maxTtlIfError optional

Open kdybicz opened this issue 3 years ago • 1 comments

In some of the case we might not need or event want the maxTtlIfError to work, it would be nice if we could omit it in the configuration and thus make sure it's not used by the code.

The temporary workaround might be using same ttl value for both maxTtlIfError and maxTtl, but this is just wasting the cache memory.

kdybicz avatar Jun 30 '22 07:06 kdybicz

Hi, I am open to a PR that makes this option configurable globally and per request.

StarpTech avatar Jun 30 '22 09:06 StarpTech