Adrian,
that is correct, in development mode (the default) screen widget caching
is disabled.
Jacopo
Adrian Crum wrote:
Jacopo Cappellato wrote:
Adrian,
That's why I suggested caching the widgets themselves. If the
discussion is about a site that is getting a million hits per day,
then caching the widgets should offer some level of improvement.
Reading and parsing the widget xml file might seem to go fast, but
the reality is that every page request requires an xml file read,
element parsing, converting parsed elements into a collection of java
classes, and some validation. With a hypothetical million-hit-per-day
site, all of those steps are repeated millions of times per day. Why
not do those steps once, and then cache the result?
-Adrian
aren't widget definitions already cached?
Jacopo
I don't know for sure. I see on the console log things like this:
2007-07-17 16:39:03,015 (http-0.0.0.0-8443-Processor2) [
ScreenFactory.java:118:INFO ] Got 28 screens in 0.094s from:
file:/C:/ofbiz/applications/workeffort/widget/WorkEffortScreens.xml
It appears to me the screens are being read from a file.