Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-2012

Freemarker caching of BeanWrapper models

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.8
    • 2.1.0
    • XML Configuration
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              musachy Musachy Barroso
              mail@andreavettori.com Andrea Vettori
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: