aspose file tools*
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


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
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?
 
jQuery in Action, 2nd edition
 
subject: Caching Issue - Data not getting refreshed