-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InvalidCache with wildcards #2
Comments
@FKSI Thank you! Will try to add this in the near future |
In the meantime I found a way to make a wildcard system:
|
Another trick is:
The idea here is, whenever you are trying to invalidate a group of dynamic routes, just |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If an user goes to
/books
and perform a query to/books?query="harry potter"
both are cached. If user add to its favorites the book from the query. Then we need to invalidate both routes.Since
/books
displays the favorites at the top.It would be great to be able to invalidate the cache from a wildcard such as
invalidateCache("/books*")
Great job btw!
The text was updated successfully, but these errors were encountered: