tags:

views:

121

answers:

1
+1  Q: 

EHCache Disable

Is there a way to disable ehache externally using a property file? CacheManager.shutdown() doesnt seem to work? Actually we have 2 app with the same source code i require ehcache in one and not the other. one where i dont need cache is a webapp! Unable to figure to out yet how to go about this?

+2  A: 

There is a system property you can use for this:

net.sf.ehcache.disabled=true
Alex Miller