Post
Share your knowledge.
How to Disable IPNS Cache for IPFS Gateway?
I have discovered that setting AcceleratedDHT: true
leads to stale IPNS entries when using gateway operations. Non-acceleratedDHT nodes receive IPNS record updates within 5 minutes compared to the 1-hour table rebuild timer. Are there any workarounds or methods to disable the IPNS cache to address this issue?
- IPFS
- IPNS
Answers
1The explanation provided may be unclear. It is possible that there is a cache within Kubo that is outdated, but there may not be a direct method to disable it.
The AcceleratedDHTClient client does not store a record table but rather a table of peers. During each query, it identifies the 20 most suitable peers for the IPNS name and promptly connects to them, leveraging its existing peer table. Given that at least one of these 20 peers possesses the updated record, it should be able to retrieve it. Additionally, peers typically do not undergo significant movement within a one-hour timeframe.
Do you know the answer?
Please log in and share it.
The InterPlanetary File System (IPFS) is a protocol, hypermedia and file sharing peer-to-peer network for storing and sharing data in a distributed file system.