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

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

                Author: ASF GitHub Bot
            Created on: 16/Oct/23 02:01
            Start Date: 16/Oct/23 02:01
    Worklog Time Spent: 10m 
      Work Description: kusalk commented on code in PR #766:
URL: https://github.com/apache/struts/pull/766#discussion_r1359882251


##########
core/src/main/java/com/opensymphony/xwork2/ognl/OgnlUtil.java:
##########
@@ -143,12 +143,18 @@ protected void setEnableExpressionCache(String cache) {
         enableExpressionCache = BooleanUtils.toBoolean(cache);
     }
 
-    @Inject(value = StrutsConstants.STRUTS_OGNL_EXPRESSION_CACHE_MAXSIZE, 
required = false)

Review Comment:
   Doesn't make much sense to inject this both in the factory and here. Plus, 
~~Caffeine doesn't support changing the max size after construction~~ (and 
neither does LRU really), ~~so we'd have to flush/reconstruct the cache to 
continue supporting this method~~. I can't see much use for changing cache max 
size mid-life anyway so I've just gone ahead and deprecated it.





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

    Worklog Id:     (was: 885246)
    Time Spent: 5h 20m  (was: 5h 10m)

> Use LRU cache by default
> ------------------------
>
>                 Key: WW-5355
>                 URL: https://issues.apache.org/jira/browse/WW-5355
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Kusal Kithul-Godage
>            Priority: Minor
>             Fix For: 6.4.0
>
>          Time Spent: 5h 20m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to