|
Author: apatel
Date: Thu Sep 10 08:04:09 2009 New Revision: 813290 URL: http://svn.apache.org/viewvc?rev=813290&view=rev Log: use cache for customtimeperiod and internal org navigation. Modified: ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/period/PeriodServices.xml ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml Modified: ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/period/PeriodServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/period/PeriodServices.xml?rev=813290&r1=813289&r2=813290&view=diff ============================================================================== --- ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/period/PeriodServices.xml (original) +++ ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/period/PeriodServices.xml Thu Sep 10 08:04:09 2009 @@ -30,7 +30,7 @@ <iterate entry="curOrganizationPartyId" list="parentOrganizationPartyIdList"> <clear-field field="orgTimePeriodList"/> - <entity-condition entity-name="CustomTimePeriod" list="orgTimePeriodList"> + <entity-condition entity-name="CustomTimePeriod" list="orgTimePeriodList" use-cache="true"> <condition-list combine="and"> <condition-list combine="or"> <condition-expr field-name="organizationPartyId" operator="equals" from-field="curOrganizationPartyId"/> @@ -48,7 +48,7 @@ </if-not-empty> <if-compare field="parameters.excludeNoOrganizationPeriods" operator="not-equals" value="Y"> - <entity-condition entity-name="CustomTimePeriod" list="generalCustomTimePeriodList"> + <entity-condition entity-name="CustomTimePeriod" list="generalCustomTimePeriodList" use-cache="true"> <condition-list combine="and"> <condition-list combine="or"> <condition-expr field-name="organizationPartyId" operator="equals" from-field="nullField"/> @@ -81,7 +81,7 @@ <set field="periodNum" value="${currentTimePeriod.periodNum - 1}" type="Integer"/> <if-compare field="periodNum" operator="greater" value="-1"> - <entity-and entity-name="CustomTimePeriod" list="customTimePeriodList" filter-by-date="false"> + <entity-and entity-name="CustomTimePeriod" list="customTimePeriodList" filter-by-date="false" use-cache="true"> <field-map field-name="organizationPartyId" from-field="currentTimePeriod.organizationPartyId"/> <field-map field-name="periodTypeId" from-field="currentTimePeriod.periodTypeId"/> <field-map field-name="periodNum"/> Modified: ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml?rev=813290&r1=813289&r2=813290&view=diff ============================================================================== --- ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml (original) +++ ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml Thu Sep 10 08:04:09 2009 @@ -487,6 +487,7 @@ <set value="Y" field="roleTypeIdFromInclueAllChildTypes"/> <set value="Y" field="includeFromToSwitched"/> + <set value="true" field="useCache"/> <call-simple-method method-name="followPartyRelationshipsInline"/> |
| Free forum by Nabble | Edit this page |
