Evict entity from Cache #10042
Unanswered
meiyasan
asked this question in
Support Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am using second level cache with Doctrine to select from entries in my database.
If I don't find the specific entry I am looking for I am adding a new one in my database.
After that I trigger a postPersist event and I would like to evict the cache result.
My new entity seems to not be evicted from cache.. (perhaps it makes sense as it is not yet created), but how can I refresh my query knowing that ?
Beta Was this translation helpful? Give feedback.
All reactions