You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ta...@apache.org on 2020/08/10 13:23:28 UTC

[myfaces] branch master updated: cache ELExpressions per default

This is an automated email from the ASF dual-hosted git repository.

tandraschko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/master by this push:
     new 0a4c15f  cache ELExpressions per default
0a4c15f is described below

commit 0a4c15f8855b984a2589cf3ca30644793ded61a6
Author: Thomas Andraschko <ta...@apache.org>
AuthorDate: Mon Aug 10 15:23:20 2020 +0200

    cache ELExpressions per default
---
 impl/src/main/java/org/apache/myfaces/config/MyfacesConfig.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/impl/src/main/java/org/apache/myfaces/config/MyfacesConfig.java b/impl/src/main/java/org/apache/myfaces/config/MyfacesConfig.java
index 92cd0b2..a07041a 100755
--- a/impl/src/main/java/org/apache/myfaces/config/MyfacesConfig.java
+++ b/impl/src/main/java/org/apache/myfaces/config/MyfacesConfig.java
@@ -717,6 +717,7 @@ public class MyfacesConfig
                        expectedValues="noCache, strict, allowCset, always, alwaysRecompile",
                        group="EL", tags="performance")
     public static final String CACHE_EL_EXPRESSIONS = "org.apache.myfaces.CACHE_EL_EXPRESSIONS";
+    private static final String CACHE_EL_EXPRESSIONS_DEFAULT = ELExpressionCacheMode.alwaysRecompile.name();
     
     /**
      * Wrap exception caused by calls to EL expressions, so information like
@@ -1290,7 +1291,7 @@ public class MyfacesConfig
                 ViewHandler.DEFAULT_FACELETS_SUFFIX);
         
         String elExpressionCacheMode = getString(extCtx, CACHE_EL_EXPRESSIONS,
-                ELExpressionCacheMode.noCache.name());    
+                CACHE_EL_EXPRESSIONS_DEFAULT);    
         cfg.elExpressionCacheMode = Enum.valueOf(ELExpressionCacheMode.class, elExpressionCacheMode); 
  
         cfg.wrapTagExceptionsAsContextAware = getBoolean(extCtx, WRAP_TAG_EXCEPTIONS_AS_CONTEXT_AWARE,