Skip to content


DCOM-57: Doctrine\Common\Cache\AbstractCache::deleteAll() does not take the namespace into account #657

doctrinebot opened this Issue · 4 comments

2 participants


Jira issue originally created by user rickdt:

The deleteAll() function delete all keys with no respect of the namespace.

Using orm:clear-cache:metadata with memcache result in the deletion of all memcache keys. (including keys unrelated to the orm)


Comment created by rickdt:

See pull request : #46

I think the best way to fix this problem is to check for the namespace in the getIds() function.

Unfortunately, that would break the interface of AbstractCache

Split the function in getIds() and abstract _getIds(). Do the namespace check in getIds()

I can do pull request on github if necessary.

I checked on master branch and the probleme is not fixed by commit
786deea : Fixed AbstractCache where delete* functions were incorrectly being prepended by namespace if any is defined. This was causing a double p


Comment created by @guilhermeblanco:

Fixed in master since this commit: 4861698


Issue was closed with resolution "Fixed"


Comment created by @beberlei:

Merged into 2.1.x for next release

@doctrinebot doctrinebot added the Bug label
@doctrinebot doctrinebot added this to the 2.1.2 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.