[ 
https://issues.apache.org/jira/browse/OFBIZ-13115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17852394#comment-17852394
 ] 

Ingo Wolfmayr commented on OFBIZ-13115:
---------------------------------------

The provided patch pins the search to the widget folders of the themes and 
plugins.

> Ofbiz performance issue with ThemeFactory
> -----------------------------------------
>
>                 Key: OFBIZ-13115
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13115
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Ingo Wolfmayr
>            Priority: Major
>         Attachments: themefactory.patch
>
>
> If there are many products with images (images stored in the plugin or 
> theme), the ThemeFactory blocks the frontend until all files are processed.
> The problem is initiated in the following lines of code in ThemeFactory.java:
> List<File> xmlThemes = FileUtil.findXmlFiles(themeFolderPath, null, "theme", 
> "widget-theme.xsd");
>         List<File> xmlPluginThemes = FileUtil.findXmlFiles(pluginsFolderPath, 
> null, "theme", "widget-theme.xsd");
> I think the search path should be restricted to the "widget" folder of the 
> respective plugins/themes, as the theme.xml file should be located there.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to