Hi, is there any way to disable caching in Jasperserver completely? My report keeps on getting old data and I need to restart the app server for the reports to reflect the new data. I'm using Hibernate datasource and I've disabled all caching in the hibernate.cfg. I suspect its Jasperserver that is doing the additional caching. (I'm not referring to OLAP caching but the JasperReports caching). Thanks.
The only caching I'm aware of occours only in Ad Hoc reports, to disable that cache edit applicationContext-adhoc.xml:
<!-- defaultTimeoutMinutes: the absolute longest time in minutes that a dataset can live in the cache -->
<property name="defaultTimeoutMinutes" value="0"/>
<!-- defaultUnusedTimeoutMinutes: the longest time a dataset can stay since the last time it was used -->
<property name="defaultUnusedTimeoutMinutes" value="0"/>
I realize this is pretty old post, but just in case anyone would run into the same problem in the future
From the Ehcache FAQ, you can set the net.sf.ehcache.disabled (-Dnet.sf.ehcache.disabled=true) system property to inhibit Ehcache from adding elements to a cache. Because no elements will be added to the cache, every cache request will result in a cache miss, providing the behavior you're looking for.
If you just want to disable for hibernate, then ehcache_hibernate.xml is the file could should correctly configure.