🌪️ Introducing purging by scopes
We're excited to announce a new feature that enables purging by a specific scope value, designed for users who utilize Stellate in a multi-tenant fashion.
This feature allows for more granular cache purging while maintaining overall performance and ease of use.
It has been requested by a bunch of you on our Stellate Feedback board: https://stellate.co/app/feedback/p/purge-by-scope-value
We introduce two new mutations in the purging API to make this possible.
You can purge the cache for regular scopes as well as JWT-scopes every time we encounter a scope we'll create a surrogate key for it.
_purgeScope
To purge all queries that are cached with a certain scope, you can now use _purgeScope
_purgeJWTScope
To purge all queries that are cached with a certain JWT scope, use _purgeJWTScope
.