Author: doogie
Date: Wed Oct 17 12:54:32 2007
New Revision: 585650
URL:
http://svn.apache.org/viewvc?rev=585650&view=revLog:
The only public hasExpired method on UtilCache takes an Object; since
a CacheLine is passed, however, UtilCache never really finds the
correct value to check for expiration. Closes
https://issues.apache.org/jira/browse/OFBIZ-1296Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/EntityCache.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/EntityCache.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/EntityCache.java?rev=585650&r1=585649&r2=585650&view=diff==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/EntityCache.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/EntityCache.java Wed Oct 17 12:54:32 2007
@@ -67,7 +67,7 @@
Iterator it = entityCache.getCacheLineValues().iterator();
while (it.hasNext()) {
CacheLine line = (CacheLine) it.next();
- if (entityCache.hasExpired(line)) continue;
+ if (line.hasExpired()) continue;
GenericEntity entity = (GenericEntity) line.getValue();
if (entity == null) continue;
if (condition.entityMatches(entity)) it.remove();