The 2.6 update to ThreadFix introduced caching to the Analytics pages. The configuration for caching is handled in two separate XML configuration files, applicationContext.xml and ehcache.xml...


The applicationContext.xml file (path: <threadfix-deploy>/WEB-INF/applicationContext.xml) can be modified to completely disable caching by removing or commenting out the following lines:

<!-- Cache configuration -->
<cache:annotation-driven cache-manager="ehCacheManager"/>

<bean id="ehCacheManager" class="org.springframework.cache.jcache.JCacheCacheManager">
	<property name="cacheManager">
		<bean class="org.springframework.cache.jcache.JCacheManagerFactoryBean" p:cacheManagerUri="classpath:ehcache.xml" />
	</property>
</bean>


Additionally, the ehcache.xml file (path: <threadfix-deploy>/WEB-INF/classes/ehcache.xml) can be configured according to the EhCache documentation located here: http://www.ehcache.org/documentation/3.0/xml.html.


For example, to change the time-to-live (TTL) value (the amount of time results are stored in the cache) from 1 hour to 10 minutes, you would update the following line in ehcache.xml...

From:
<ttl unit="hours">1</ttl>


To:
<ttl unit="minutes">10</ttl>