Author: lektran
Date: Mon Mar 22 17:15:02 2010
New Revision: 926198
URL:
http://svn.apache.org/viewvc?rev=926198&view=revLog:
Use the cache when looking for a default content record
Modified:
ofbiz/trunk/applications/content/src/org/ofbiz/content/cms/CmsEvents.java
Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/cms/CmsEvents.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/cms/CmsEvents.java?rev=926198&r1=926197&r2=926198&view=diff==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/cms/CmsEvents.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/cms/CmsEvents.java Mon Mar 22 17:15:02 2010
@@ -108,7 +108,7 @@ public class CmsEvents {
if (pathInfo == null) {
List<GenericValue> defaultContents = null;
try {
- defaultContents = delegator.findByAnd("WebSiteContent", UtilMisc.toMap("webSiteId", webSiteId,
+ defaultContents = delegator.findByAndCache("WebSiteContent", UtilMisc.toMap("webSiteId", webSiteId,
"webSiteContentTypeId", "DEFAULT_PAGE"), UtilMisc.toList("-fromDate"));
} catch (GenericEntityException e) {
Debug.logError(e, module);