-->
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.  [ 3 posts ] 
Author Message
 Post subject: Disable caching?
PostPosted: Thu Jan 24, 2008 3:55 pm 
Newbie

Joined: Thu Jan 24, 2008 3:43 pm
Posts: 3
Is it possible to simply disable caching of all kinds (session level)? Even though I've set the (seemingly) appropriate properties to disable L2 cache and query cache (for good measure), I still can't get NHibernate to stop caching data locally.

Thanks!

-Giorgio

*Crap* sorry, meant to post this in the NHibernate forum.


Top
 Profile  
 
 Post subject: Re: Disable caching?
PostPosted: Thu Jan 24, 2008 5:59 pm 
Expert
Expert

Joined: Wed Apr 11, 2007 11:39 am
Posts: 735
Location: Montreal, QC
GiorgioG wrote:
Is it possible to simply disable caching of all kinds (session level)? Even though I've set the (seemingly) appropriate properties to disable L2 cache and query cache (for good measure), I still can't get NHibernate to stop caching data locally.

Thanks!

-Giorgio

*Crap* sorry, meant to post this in the NHibernate forum.


set the hibernate.cache.provider_class property to an empty cache provider class. It should simply report any request as a mis-hit. I come from the Java work (that happens when you mix up the forums :d) and in Java hibernate we have a NoCacheProvider implementation. There might be a similar for the NHibernate one too.



Farzad-


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 28, 2008 12:38 pm 
Newbie

Joined: Thu Jan 24, 2008 3:43 pm
Posts: 3
Thank you so much Farzad! That worked splendidly!


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

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.