Author: doogie
Date: Mon Nov 23 03:02:27 2009
New Revision: 883224
URL:
http://svn.apache.org/viewvc?rev=883224&view=revLog:
Move getCacheName out of the synchronized block.
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/AbstractCache.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/AbstractCache.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/AbstractCache.java?rev=883224&r1=883223&r2=883224&view=diff==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/AbstractCache.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/AbstractCache.java Mon Nov 23 03:02:27 2009
@@ -75,8 +75,8 @@
}
protected UtilCache<K, V> getOrCreateCache(String entityName) {
+ String name = getCacheName(entityName);
synchronized (UtilCache.utilCacheTable) {
- String name = getCacheName(entityName);
UtilCache<K, V> cache = UtilCache.findCache(name);
if (cache == null) {
cache = UtilCache.createUtilCache(name, 0, 0, 0, true, false, getCacheNames(entityName));