3 ms·
Rather the API client calls the invalidation methods on the server to invalidate cache. The server doesn't do it all automatically. As far as I have understood
by habibur 5y ago
Rather the API client calls the invalidation methods on the server to invalidate cache. The server doesn't do it all automatically.
As far as I have understood.
- timsuchanek 5y agoThat sounds correct! These are ways of purging we support today: 1. Automatic through mutations (if we can detect) 2. A purging api (GraphQL) - you can e.g. `purgeUser(id: 5)` 3. The usual Max age + SWR based invalidation You can check out some more examples here: https://graphcdn.io/docs/cache-purging https://graphcdn.io/docs/cache-purging