struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Vettori (JIRA)" <j...@apache.org>
Subject [jira] Created: (WW-2012) Freemarker caching of BeanWrapper models
Date Sat, 23 Jun 2007 07:10:27 GMT
Freemarker caching of BeanWrapper models
----------------------------------------

                 Key: WW-2012
                 URL: https://issues.apache.org/struts/browse/WW-2012
             Project: Struts 2
          Issue Type: Improvement
          Components: Configuration
            Reporter: Andrea Vettori
            Priority: Minor


It would be nice to have a configuration option (in struts.properties, for example) to enable
freemarker caching of beanwrapper models. It's off by default and in my app helped reducing
garbage memory allocation...

Assuming myConfiguration is Freemarker Configuration

((BeansWrapper)myConfiguration.getObjectWrapper()).setUseCache(true)

can be used to enable the cache.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message