-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ipns cache is not invalidated #6663
Comments
This is the point of the TTL:
It's the same as a DNS TTL. You may be looking for |
I completely disagree. If you failed to resolve a path via /ipns/old_path/new_file, then the cache is invalid and ipfs needs to find the actual value in the DHT. |
Is the search not checking the DHT and invalidating the cache automatically when this happens? If not it should definitely be doing this. It seems like the restart fixes the issue because it clears the LRU cache. If we're going with a cache then it should be proactively managed. |
If you need immediate updates, I recommend enabling IPNS over pubsub and setting the TTL to 0 on publish. Unfortunately, |
Version information:
Description:
Run 2 nodes on the server and on the client. Add a file on the server and call
ipfs name publish --ttl 1h ...
. Cat that file via /ipns on the server. Add a new file on the server and publish the cid again. The client caches /ipns and the second file is impossible to get via /ipns (cache is not invalidated). The error I got is Error: no link named "file2" under QmUYfCbJoPwifhhrqXzJBXaeScF3MwKXA3sTkCx6BbbmpU. To invalidate the cache I have to restart the daemon which is weird.The text was updated successfully, but these errors were encountered: