You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2017/07/29 13:41:08 UTC
svn commit: r1803362 -
/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java
Author: fschumacher
Date: Sat Jul 29 13:41:07 2017
New Revision: 1803362
URL: http://svn.apache.org/viewvc?rev=1803362&view=rev
Log:
Don't store entries in the cache, when they are already present.
Bugzilla Id: 61321
Modified:
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java
Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java?rev=1803362&r1=1803361&r2=1803362&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java (original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java Sat Jul 29 13:41:07 2017
@@ -258,6 +258,10 @@ public class CacheManager extends Config
getCache().put(url, new CacheEntry(lastModified, expiresDate, etag, varyHeader.getLeft()));
getCache().put(varyUrl(url, varyHeader.getLeft(), varyHeader.getRight()), new CacheEntry(lastModified, expiresDate, etag, null));
} else {
+ if (getCache().get(url) != null) {
+ log.debug("Entry for {} already in cache.", url);
+ return;
+ }
CacheEntry cacheEntry = new CacheEntry(lastModified, expiresDate, etag, null);
if (log.isDebugEnabled()) {
log.debug("Set entry {} into cache for url {}", url,