myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject [myfaces] branch master updated: MYFACES-4225
Date Tue, 06 Oct 2020 14:25:06 GMT
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 bdac402  MYFACES-4225
bdac402 is described below

commit bdac4026e8cb46bd9dee2ef2666ad35132af8fca
Author: Thomas Andraschko <tandraschko@apache.org>
AuthorDate: Tue Oct 6 16:24:57 2020 +0200

    MYFACES-4225
---
 impl/src/main/java/org/apache/myfaces/resource/ResourceLoader.java | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/impl/src/main/java/org/apache/myfaces/resource/ResourceLoader.java b/impl/src/main/java/org/apache/myfaces/resource/ResourceLoader.java
index 6984671..5c971b3 100644
--- a/impl/src/main/java/org/apache/myfaces/resource/ResourceLoader.java
+++ b/impl/src/main/java/org/apache/myfaces/resource/ResourceLoader.java
@@ -95,7 +95,12 @@ public abstract class ResourceLoader
             if (exists == null)
             {
                 exists = getResourceURL(resourceMeta) != null;
-                resourceExistsCache.put(resourceMeta, exists);
+                // this method is normally just called in case when there is no cached item
in ResourceHandlerCache
+                // so lets just do a negative cache here
+                if (!exists)
+                {
+                    resourceExistsCache.put(resourceMeta, exists);
+                }
             }
             return exists;
         }


Mime
View raw message