-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
🤗 [Question]: Cache Next is not called when KeyGenerator is Defined #3034
Comments
Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord |
@hcancelik there is no dependency on the other function outside but there are other dependencies, e.g. if the cache entry is not there and has to be created first, etc. can you narrow down the problem more precisely? fiber/middleware/cache/cache.go Line 174 in 6c9510d
|
@ReneWerner87, thanks for your response. I think I misunderstood what I was trying to skip the existing cache and generate a new one by passing query parameters with Next. I guess that's not doable with the current middleware. Skip middleware completely skips the cache so I cannot use that either. |
@hcancelik good point, we are currently working on version 3 can you help and make the cache middleware capable of covering this case i think we have had several requests like this from other users maybe we should provide a |
@ReneWerner87 I'm not good at Go, but I will try it and let you know. |
@ReneWerner87 I just sent a PR for this #3036 |
Question Description
Is it by design or a bug that the
Next
function is not called when theKeyGenerator
config is defined?Code Snippet (optional)
Checklist:
The text was updated successfully, but these errors were encountered: