How to renew or invalidate cache using SimpleCachingPageFilter in Ehcache?

I figured out how to make it: CacheManager.getInstance(). GetEhcache("CacheName").removeAll(); It gets singletone CacheManager, then gets Ehcache depending on name of cache, then removes elements. In next request to that cached page, filter looks for Ehcache, finds, but without elementx and UPDATES elements!

I solve this by setting a time to live to 5 minutes.

Thanks for good idea, if you interested I posted another question about ehcache stackoverflow. Com/questions/4954683/… – Rinat Tainov Feb 10 at 8:05 I found the way, maybe not right. Do you know better way?

– Rinat Tainov Feb 11 at 4:06.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions