-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: How to make queryParameters cacheable??
PostPosted: Fri Sep 25, 2009 12:48 am 
Regular
Regular

Joined: Fri Nov 07, 2003 6:31 am
Posts: 104
Location: Beijing, China
Hi,
I'm working with 3.3.2GA and ehcache 1.6.2.

I just realized why many queries didn't hit the cache. While debuggind something and passing through the Loader, i stumbled upon this line Loader:2118 in the list(...) method:
Code:
final boolean cacheable = factory.getSettings().isQueryCacheEnabled() &&
         queryParameters.isCacheable();


factory.getSettings().isQueryCacheEnabled() is true when ehcache query cache is enabled, but queryParameters.isCacheable() seem to always resolve to false.

I can't find any way to set queryParameters as cacheable, not in the doc not on the web not in the forum.

I think that'd help many, wondering as I do why so many queries don't hit the cache!

_________________
/nodje


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.