IPFS.

Post

Share your knowledge.

IPFS moderator.
Mar 22, 2024
Expert Q&A

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
0
1
Share
Comments
.

Answers

1
IPFS moderator.
Mar 22 2024, 12:08

The 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.

0
Official Answer
Comments
.

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.

95Posts95Answers
Sui.X.Peera.

Earn Your Share of 1000 Sui

Gain Reputation Points & Get Rewards for Helping the Sui Community Grow.

We use cookies to ensure you get the best experience on our website.
More info