You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2010/03/22 18:15:02 UTC

svn commit: r926198 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/cms/CmsEvents.java

Author: lektran
Date: Mon Mar 22 17:15:02 2010
New Revision: 926198

URL: http://svn.apache.org/viewvc?rev=926198&view=rev
Log:
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);