diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/AbstractStoreCursor.java b/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/AbstractStoreCursor.java index ec6fb0dd79..63cefd23a9 100644 --- a/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/AbstractStoreCursor.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/AbstractStoreCursor.java @@ -208,7 +208,7 @@ public abstract class AbstractStoreCursor extends AbstractPendingMessageCursor i if (last != null) { last.decrementReferenceCount(); } - if (size==0 && isStarted() && useCache && hasSpace() && isStoreEmpty()) { + if (size==0 && isStarted() && useCache && hasSpace() ) { if (LOG.isDebugEnabled()) { LOG.debug(regionDestination.getActiveMQDestination().getPhysicalName() + " enabling cache on last remove"); }