diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryCacheStoreQuery.java b/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryCacheStoreQuery.java index 07b22943f..92dc78fae 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryCacheStoreQuery.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryCacheStoreQuery.java @@ -144,7 +144,7 @@ public class QueryCacheStoreQuery for (Long ts: timestamps) { // if this is true we have to evict the query // from cache - if (queryTS < ts) { + if (queryTS <= ts) { qcache.remove(qk); return null; }