Author: areshetnyak
Date: 2010-01-05 12:21:28 -0500 (Tue, 05 Jan 2010)
New Revision: 1299
Modified:
jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/jbosscache/ExoEvictionActionPolicy.java
Log:
EXOJCR-333 : The ExoEvictionActionPolicy was changed.
Modified:
jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/jbosscache/ExoEvictionActionPolicy.java
===================================================================
---
jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/jbosscache/ExoEvictionActionPolicy.java 2010-01-05
16:50:17 UTC (rev 1298)
+++
jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/jbosscache/ExoEvictionActionPolicy.java 2010-01-05
17:21:28 UTC (rev 1299)
@@ -45,22 +45,22 @@
if (fqn.size() == 3 &&
(JBossCacheWorkspaceStorageCache.CHILD_NODES_LIST.equals(fqn.get(0)) ||
JBossCacheWorkspaceStorageCache.CHILD_PROPS_LIST.equals(fqn.get(0))))
{
- return eviction(fqn.getParent());
+ return eviction(fqn.getParent(), true);
}
else
{
- return eviction(fqn);
+ return eviction(fqn, false);
}
}
- private boolean eviction(Fqn fqn)
+ private boolean eviction(Fqn fqn, boolean recurcive)
{
try
{
if (LOG.isDebugEnabled())
LOG.debug("Evicting Fqn " + fqn);
- cache.evict(fqn);
+ cache.evict(fqn, recurcive);
return true;
}
catch (Exception e)
Show replies by date