You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2013/11/27 12:50:02 UTC

svn commit: r1546001 - /cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheTokenReplayCache.java

Author: coheigea
Date: Wed Nov 27 11:50:01 2013
New Revision: 1546001

URL: http://svn.apache.org/r1546001
Log:
Make sure last access time is set to zero before putting an element in the cache

Modified:
    cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheTokenReplayCache.java

Modified: cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheTokenReplayCache.java
URL: http://svn.apache.org/viewvc/cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheTokenReplayCache.java?rev=1546001&r1=1546000&r2=1546001&view=diff
==============================================================================
--- cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheTokenReplayCache.java (original)
+++ cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheTokenReplayCache.java Wed Nov 27 11:50:01 2013
@@ -117,7 +117,9 @@ public class EHCacheTokenReplayCache imp
             }
         }
         
-        cache.put(new Element(id, id, false, parsedTTL, parsedTTL));
+        Element cacheElement = new Element(id, id, false, parsedTTL, parsedTTL);
+        cacheElement.resetAccessStatistics();
+        cache.put(cacheElement);
     }
     
     /**