wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes Caching Issue - Data not getting refreshed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Caching Issue - Data not getting refreshed" Watch "Caching Issue - Data not getting refreshed" New topic
Author

Caching Issue - Data not getting refreshed

Himanshu
Greenhorn

Joined: Nov 05, 2008
Posts: 5
Hi,
I have enabled second level query caching. Problem is when data is updated in the backend directly (not from UI), same is not reflected unless cache time expires. I have defined app-cache.xml like:


Even though time set is 60 seconds, no change is reflected before 120 seconds have elapsed (which is, I think, default value set in defaultCache).

Any suggestion to resolve issue is welcome.
Subin Sugunan
Greenhorn

Joined: Jul 01, 2009
Posts: 14
Set proper fetch policy.


Thanks and Best Regards
Subin Sugunan
Himanshu
Greenhorn

Joined: Nov 05, 2008
Posts: 5
Subin Sugunan wrote:Set proper fetch policy.

And what that would be?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Caching Issue - Data not getting refreshed
 
Similar Threads
submit button only works once?
Problem in data integrity when using read only entity bean
Servlet Caching Problem!!!!!!!!!!!!!!!!!
Performance considerations for Portlets?
Ajax and the Caching issue