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.  [ 2 posts ] 
Author Message
 Post subject: disabling 2nd level cache
PostPosted: Wed Feb 28, 2007 12:47 pm 
Newbie

Joined: Wed Feb 28, 2007 11:31 am
Posts: 1
I'm using NHibernate version: 1.0.4

Can i disabled 2nd level cache without modify the class mapping ?

thanks,


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 28, 2007 10:29 pm 
Beginner
Beginner

Joined: Mon Sep 26, 2005 5:57 pm
Posts: 39
Yes, all you would need to do is to remove the sections that deal with 2nd level cache from the web.config:

<add key="hibernate.cache.use_query_cache" value="true"/>
<add key="hibernate.cache.provider_class" value="XXXX" />

You can even leave the <cache usage="XXXX" /> in your mapping files, in case you do not want to use 2nd level cache for now. This will make it easier for your to turn on 2nd level cache later if you decided to use it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.