You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/06/20 22:33:00 UTC

[jira] [Work logged] (WW-5173) Implement additional OGNL cache configuration controls

     [ https://issues.apache.org/jira/browse/WW-5173?focusedWorklogId=783143&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-783143 ]

ASF GitHub Bot logged work on WW-5173:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 20/Jun/22 22:32
            Start Date: 20/Jun/22 22:32
    Worklog Time Spent: 10m 
      Work Description: JCgH4164838Gh792C124B5 opened a new pull request, #573:
URL: https://github.com/apache/struts/pull/573

   Hello Apache Struts Team.
   
   This is an initial attempt to fix the dependency-injection behaviour for the custom expression and BeanInfo cache factory mechanism introduced in 6.0.0 (was 2.6).  It took a fair amount of debugging and playing with configuration values to arrive at a small number of changes.
   
   With these changes, and a custom implementation, it seems that `Container` `getInstance(type, name)` will now return the custom implementation.  That is an improvement, but the default container instance construction of `OgnlUtil` still seems to use the default implementations (so it seems something is still missing at this point).
   
   Please advise if anyone can see additional changes that might resolve the remaining issue(s) for custom cache factory assignment.




Issue Time Tracking
-------------------

            Worklog Id:     (was: 783143)
    Remaining Estimate: 0h
            Time Spent: 10m

> 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
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)