NerdWalletOSS / apollo-cache-policies

An extension of the Apollo 3 cache with support for advanced cache policies.
Apache License 2.0
157 stars 21 forks source link

ttl doesn't seem to be working #78

Closed sirpy closed 10 months ago

sirpy commented 10 months ago

using the cache with a very minimal ttl, monitroing the network tab in the browser, when re issuing the query even after ttl has passed no new network calls are seen and data is fetched from cache. new queries make the network call.

danReynolds commented 10 months ago

Do you have some code handy? I can see how it's being configured to see if there's something that sticks out

sirpy commented 10 months ago

Doesn't seem to be related to your package. It seems that apollo client also doesnt re-execute the queries. maybe related to some hooks memoization.