Back

listDocuments returning already deleted documents

  • 0
  • Databases
  • Web
arekksu
16 Aug, 2024, 23:10

Hi guys!

I'm trying to list all documents from a collection, but intermittently, I'm getting documents that have already been deleted (yes, as strange as it sounds). I've tried using the application in an incognito tab, clearing the cache, and things like that, but it still keeps happening. I've searched around but couldn't find anything about what I might be doing wrong. Does anyone have any ideas?

I have no idea where these documents are coming from. I tried deleting them, but since they no longer exist in the collections, I get a 'not found' error.

Oh, and I'm using Next.js + React.

TL;DR
Developers suspect Next.js is returning cached results, causing deleted documents to still appear in the list. Make sure to clear the Next.js cache or investigate further if the issue persists.
Steven
16 Aug, 2024, 23:18

NextJS. I'm pretty sure NextJS is returning cached results

arekksu
16 Aug, 2024, 23:22

Yeah, I suspected Next.js. But since I've already tried clearing the cache and using an incognito tab, I just wanted to check here to make sure it doesn't have something to do with Appwrite.

Thanks!

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more