Skip to content

Doctrine Result Cache uses square brackets for the Cache Key which makes it difficult to clear #11020

Closed Answered by glxgxr
glxgxr asked this question in Support Questions
Discussion options

You must be logged in to vote

I solved it by myself. I should have used the CacheDriver instead of the CachePool, because the Driver uses the namespaces to delete the item. Like this:

$this->_em->getConfiguration()->getResultCacheImp()->delete('my-cachekey');

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@derrabus
Comment options

Answer selected by glxgxr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants