Open tennox opened 1 week ago
This is a sensible request but we should not change the way that --nocache
works. instead, there should be something like --cache-purge
to do what you are asking for.
Thanks. To be clear - it should not purge the cache, but update it when the value changed (i.e. there should not be a time in which there is no cache entry, which would delay gateway responses)
Checklist
Installation method
docker image
Version
Description
Context
I want to be able to trigger a refresh of my IPNS value. I tried lowering TTL & MaxCacheTTL (as suggested here) - but that will mean that the gateway has a ~40s delay for the first request after the cache entry was evicted.
So I thought: what if I regularily resovle the IPNS value without cache and thus refresh the cache?
It turns out kubo does find the new value, but appears to completely bypass the cache - also not updating it. That is unfortunate :/