Hi Pawan, I can imagine that this can be come a huge negative factor, when the implementing adopter includes a lot of themes for both back-end and front-ends. Though I would guess that the adopter would have one for back-end. But with a multitude of front-ends and each having its own theme it would be cumbersome.
Maybe a disentanglement of various themes is in order? Met vriendelijke groet, Pierre Smits *Proud* *contributor** of* Apache OFBiz <https://ofbiz.apache.org/> since 2008 (without privileges) *Apache Trafodion <https://trafodion.apache.org>, Vice President* *Apache Directory <https://directory.apache.org>, PMC Member* Apache Incubator <https://incubator.apache.org>, committer Apache Steve <https://steve.apache.org>, committer On Wed, May 6, 2020 at 1:33 PM Pawan Verma <pawan.ve...@hotwaxsystems.com> wrote: > Hello Devs, > > Greetings for the day, I hope you all are doing well in this pandemic > situation. > > I wanted to bring your attention to a case where it takes a lot of time to > load the themes to the cache. > On checking, I found that OFBiz searches all the Theme.xml files under > ofbiz.home with 'themes' as a partial path written under > ThemeFactory.pullModelThemesFromXmlToCache(). The problem occurs mainly > when the runtime data is huge in the system, and it increases the time > since the current code also scans the Theme.xml under runtime directory. > > What should we do to resolve this issue? > A solution comes to mind which is to include 'themes' directory in the > basePath for the searching of Theme.xml file. > > Please advise and share your thoughts. > -- > Thanks & Regards > Pawan Verma > Technical Consultant > *HotWax Systems* > *Enterprise open source experts* > http://www.hotwaxsystems.com >