Replies: 1 comment 3 replies
-
Hi @omerman! You definitely can make one storage for different apps. But there are a lot of things to consider. You are using the App Router, aren't you? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Its more of a question.
I have a monorepo that has multiple nextjs apps that sometimes need to notify each other about cache revalidations.
Currently I handle it by REST api's, meaning the different apps send Rest's to each other notifying about tags that needs to revalidate.
All the Apps use the same fetch queries, therefore technically their caches are redundant.
So first of all I was wondering if your cache handler solution work on my apps, making the cache shared between the different apps.
Secondly Im not sure if I understand exactly what happens once you revalidate, if an app still looks at it's LRU for something that was just revalidated, it will be out of sync for until the resource that was revalidated is out of the LRU cache? or am I missing something.
Beta Was this translation helpful? Give feedback.
All reactions