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

Jacques Le Roux commented on OFBIZ-13115:
-----------------------------------------

Forgot the Jira number, implemented with [commit 
c2cb522b54a73f3ea596ab4c289a067eac08ad55|https://github.com/apache/ofbiz-framework/commit/c2cb522b54a73f3ea596ab4c289a067eac08ad55]

> Ofbiz performance issue with ThemeFactory
> -----------------------------------------
>
>                 Key: OFBIZ-13115
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13115
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework/widget
>    Affects Versions: Upcoming Branch
>            Reporter: Ingo Wolfmayr
>            Assignee: Jacques Le Roux
>            Priority: Major
>             Fix For: Upcoming Branch
>
>         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