DCOM-16: Doctrine\Cache\Cache\AbstractCache::deleteByPrefix() vs. cache namespace #460

Closed
doctrinebot opened this Issue Aug 5, 2010 · 2 comments

1 participant

@doctrinebot

Jira issue originally created by user xlite:

The methods deleteByPrefix() / deleteByRegExp() / deleteBySuffix() are based on the method getIds(), which returns unique identifiers with an added namespace in the front. That is why to be able to delete cells using these three methods, you have to know the namespace.
Example:

$cacheDriver->setNamespace('ns');
$cacheDriver->save('data', 'name');
$cacheDriver->deleteByPrefix('data');

In this example the cell will not be deleted.

@doctrinebot

Comment created by @guilhermeblanco:

In commit: http://github.com/doctrine/common/commit/a2238b871c13cf0e195fa18f0b8744e38baabf48
I committed a fix to this issue.

Thanks for reporting that!

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added the Bug label Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment