-->
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.  [ 4 posts ] 
Author Message
 Post subject: Disable second level cache
PostPosted: Wed May 30, 2007 4:47 am 
Regular
Regular

Joined: Fri May 05, 2006 11:54 am
Posts: 51
Does anybody know how to disable the second level cache?

I have all my nice
Code:
<cache>
elements defined in my mapping files but would like to somehow disable the cache in the configuration.

I have tried commenting out the following key:

Code:
<!--<item key="hibernate.cache.provider_class">NHibernate.Caches.MemCache.MemCacheProvider,NHibernate.Caches.MemCache</item>-->


But the items still seemed to be cached.

Is there anything I can do.[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 30, 2007 10:01 am 
Beginner
Beginner

Joined: Wed Jul 19, 2006 8:24 am
Posts: 35
Comment this line out too:

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


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 30, 2007 11:07 am 
Regular
Regular

Joined: Fri May 05, 2006 11:54 am
Posts: 51
I tried that and it still appears to be caching.

The piece of code in question was not using teh query cache.

Does NHibernate default to the SysCacheProvider for caching.

The only way I have got round this is to comment out all the cache tags.

Not ideal.

Am I missing something or way off the mark?

Cheers


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 30, 2007 1:22 pm 
Regular
Regular

Joined: Mon Mar 20, 2006 10:49 pm
Posts: 59
Add

<add key="hibernate.cache.use_second_level_cache" value="false"/>

_________________
Mike Abraham


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