Author: coheigea
Date: Tue Nov 26 16:43:46 2013
New Revision: 1545718

URL: http://svn.apache.org/r1545718
Log:
Resetting an EhCache Element before adding to the cache to make sure the last 
access time is set (see CXF-5420)

Modified:
    
webservices/wss4j/trunk/ws-security-common/src/main/java/org/apache/wss4j/common/cache/EHCacheReplayCache.java

Modified: 
webservices/wss4j/trunk/ws-security-common/src/main/java/org/apache/wss4j/common/cache/EHCacheReplayCache.java
URL: 
http://svn.apache.org/viewvc/webservices/wss4j/trunk/ws-security-common/src/main/java/org/apache/wss4j/common/cache/EHCacheReplayCache.java?rev=1545718&r1=1545717&r2=1545718&view=diff
==============================================================================
--- 
webservices/wss4j/trunk/ws-security-common/src/main/java/org/apache/wss4j/common/cache/EHCacheReplayCache.java
 (original)
+++ 
webservices/wss4j/trunk/ws-security-common/src/main/java/org/apache/wss4j/common/cache/EHCacheReplayCache.java
 Tue Nov 26 16:43:46 2013
@@ -100,7 +100,9 @@ public class EHCacheReplayCache implemen
             }
         }
         
-        cache.put(new Element(identifier, identifier, parsedTTL, parsedTTL));
+        Element cacheElement = new Element(identifier, identifier, parsedTTL, 
parsedTTL);
+        cacheElement.resetAccessStatistics();
+        cache.put(cacheElement);
     }
     
     /**


Reply via email to