summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Acl/Domain/DoctrineAclCache.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/Acl/Domain/DoctrineAclCache.php b/Acl/Domain/DoctrineAclCache.php
index 9e14af5..0c69773 100644
--- a/Acl/Domain/DoctrineAclCache.php
+++ b/Acl/Domain/DoctrineAclCache.php
@@ -12,6 +12,7 @@
namespace Symfony\Component\Security\Acl\Domain;
use Doctrine\Common\Cache\Cache;
+use Doctrine\Common\Cache\CacheProvider;
use Symfony\Component\Security\Acl\Model\AclCacheInterface;
use Symfony\Component\Security\Acl\Model\AclInterface;
use Symfony\Component\Security\Acl\Model\ObjectIdentityInterface;
@@ -55,7 +56,9 @@ class DoctrineAclCache implements AclCacheInterface
*/
public function clearCache()
{
- $this->cache->deleteByPrefix($this->prefix);
+ if ($this->cache instanceof CacheProvider) {
+ $this->cache->deleteAll();
+ }
}
/**