[ https://issues.apache.org/jira/browse/WW-5173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17553175#comment-17553175 ]
James Chaplin commented on WW-5173: ----------------------------------- Hi [~yasserzamani] . Thanks for taking a look. When I added code similar to the above to a test application, where I attempted multiple different ways to register a custom {{ExpressionCacheFactory}} , the result was always null (neither the custom bean, nor the default bean were returned). Prior to that, using interactive debugging of the same test application, at the {{OgnlUtil}} construction the injected parameters were always null. More recently, I noticed that only the default (no-parameter) constructor appears to be being called, which accounts for the null parameters. Based on the above, either I am not configuring the extension correctly, or the extension point is not working as intended. > Implement additional OGNL cache configuration controls > ------------------------------------------------------ > > Key: WW-5173 > URL: https://issues.apache.org/jira/browse/WW-5173 > Project: Struts 2 > Issue Type: Improvement > Components: Core > Affects Versions: 6.0.0 > Reporter: James Chaplin > Priority: Minor > > With Struts 2.6, there may be an opportunity to introduce some additional > OGNL cache configuration capabilities. One idea is to provide an cache size > control, and a toggle for an LRU cache mode. These configuration controls > could be applied to the expression cache and BeanInfo caches independently. > The new properties could be optional, with the framework using a standard > default cache if the properties are not provided. -- This message was sent by Atlassian Jira (v8.20.7#820007)