Author: jaz
Date: Mon Oct 15 10:56:05 2007
New Revision: 584831
URL:
http://svn.apache.org/viewvc?rev=584831&view=revLog:
minor change which changes variable name and cache key as this was copy/paste from another class
Modified:
ofbiz/trunk/applications/party/src/org/ofbiz/party/content/PartyContentWrapper.java
Modified: ofbiz/trunk/applications/party/src/org/ofbiz/party/content/PartyContentWrapper.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/src/org/ofbiz/party/content/PartyContentWrapper.java?rev=584831&r1=584830&r2=584831&view=diff==============================================================================
--- ofbiz/trunk/applications/party/src/org/ofbiz/party/content/PartyContentWrapper.java (original)
+++ ofbiz/trunk/applications/party/src/org/ofbiz/party/content/PartyContentWrapper.java Mon Oct 15 10:56:05 2007
@@ -47,7 +47,7 @@
public static final String module = PartyContentWrapper.class.getName();
public static final String CACHE_KEY_SEPARATOR = "::";
- public static UtilCache workEffortContentCache = new UtilCache("workeffort.content.rendered", true);
+ public static UtilCache partyContentCache = new UtilCache("party.content.rendered", true);
protected LocalDispatcher dispatcher;
protected GenericValue party;
@@ -135,8 +135,8 @@
}
try {
- if (useCache && workEffortContentCache.get(cacheKey) != null) {
- return (String) workEffortContentCache.get(cacheKey);
+ if (useCache && partyContentCache.get(cacheKey) != null) {
+ return (String) partyContentCache.get(cacheKey);
}
Writer outWriter = new StringWriter();
@@ -144,8 +144,8 @@
String outString = outWriter.toString();
if (outString.length() > 0) {
- if (workEffortContentCache != null) {
- workEffortContentCache.put(cacheKey, outString);
+ if (partyContentCache != null) {
+ partyContentCache.put(cacheKey, outString);
}
return outString;
} else {