Chain cache always looking for item till the last chain #53825
-
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 7 replies
-
The |
Beta Was this translation helpful? Give feedback.
-
@xabbuh Hi, sorry to doubt your message, but from my point of view the idea of |
Beta Was this translation helpful? Give feedback.
-
I missed that you query for the same item inside the loop. Can you create a small example application that allows to reproduce your issue? |
Beta Was this translation helpful? Give feedback.
-
This line goes to all adapters so that all of them have it. That's the explanation why redis is always hit. |
Beta Was this translation helpful? Give feedback.
-
Well, this is pretty understandable, but I still don't think it is okay to call Redis fetch 10 times. |
Beta Was this translation helpful? Give feedback.
-
You need to move that line inside the "if". If you don't want that redis to be called 10 times, just don't write the code that asks for it :) |
Beta Was this translation helpful? Give feedback.
-
Argh, I'm sorry, I double checked to be sure and the reason is more complex! |
Beta Was this translation helpful? Give feedback.
Should be fixed by #53846