Back

Do anyone know if Appwrite caches buckets (not files) in Storage? I am not getting any buckets in re

  • 0
  • Self Hosted
  • Storage
Zynth
12 Oct, 2024, 16:43

Do anyone know if Appwrite caches buckets (not files) in Storage? I am not getting any buckets in response after I can clearly see that I have it in the Appwrite dashboards. Likewise, after I found a bucket in my app, but then deleted it via Dashboard, Appwrite was still returning the bucket from the note-appwrite API (after a restart, so no cache locally). πŸ”₯

TL;DR
Appwrite does not cache buckets in Storage. If you are using next.js, it might be caching the data. Consider using unstable_noStore() in your function for server components.
Steven
13 Oct, 2024, 01:04

No, Appwrite does not.

Are you using nextJS? If so, it could be nextJS caching the data

faye
13 Oct, 2024, 11:50

If you are using next.js, is it a server component?

Server components are cached by default, use unstable_noStore() in your function

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