Jira issue originally created by user redemption:
When I run doctrine orm:clear-cache:metadata I noticed that it clears everything within the cache, even items which have nothing to do with Doctrine at all.
In looking into the various driver implementations it seems that the AbstractCache->deleteAll() depends on getIds of each cache driver, yet the getIds of XcacheCache and MemcacheCache drivers seem to just get every single item within the cache.
This has several implications:
In looking at the stored cache data it seems possible to fix #2 by using the Namespace of that project when executing a cache clear. it also seems possible to use the cache driver's deleteByRegex() to solve #1 by deleting only items listed as metadata cache vs query cache. Fixing #1 and #2 automatically fixes concern #3
Or, as an alternative, I could suggest that deleteAll() in MetaDataCommand should be replaced by:
$cacheIds = $cacheDriver->deleteBySuffix('METADATA');
Comment created by redemption:
I think this issue might be resolved in 2.2 since the cache layer seems to have been rewritten.
Comment created by @guilhermeblanco:
To address this issue we require the rewrite that was done in 2.2.
Closing as fixed.
Issue was closed with resolution "Fixed"