File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EhCache and the fly likes EHCache problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Caching » EhCache
Bookmark "EHCache problems" Watch "EHCache problems" New topic
Author

EHCache problems

David Cuesta
Greenhorn

Joined: Nov 07, 2001
Posts: 25
Hi everybody,

I've an application installed in production that uses EHCache as cache manager and is working fine, but sometimes the cache is down and shows a message about that the cache is invalidated, any idea about or similar behaviour?

Thanks in advance,

Best regards,
soundar rajan
Greenhorn

Joined: May 08, 2013
Posts: 16
you can solve this by setting a time to live to 5 minutes

<cache name="SimplePageCachingFilter"
maxElementsInMemory="100"
eternal="false"
timeToIdleSeconds="300"
timeToLiveSeconds="300"
overflowToDisk="true" />
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: EHCache problems
 
Similar Threads
Caching EJB stored procedure calls.
Ehcache ...
clustering web servers
Problem with read-write cache
JPA Caching for Performance