Improved: EntityUtilProperties.getProperties method should use cache.

(OFBIZ-10717)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1849191 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Deepak Dixit
2018-12-18 16:20:56 +00:00
parent 2a96d29cbe
commit b7d0f87ae8
@@ -202,6 +202,7 @@ public final class EntityUtilProperties implements Serializable {
gvList = EntityQuery.use(delegator)
.from("SystemProperty")
.where("systemResourceId", resourceName)
.cache()
.queryList();
if (UtilValidate.isNotEmpty(gvList)) {
for (Iterator<GenericValue> i = gvList.iterator(); i.hasNext();) {