Well, I create a new NHibernate session at each requests. First level
cache is destroyed when the session is disposed at the end of the
request, right ?

So, when I am in debug mode on the NHibernate project, I should at
least once reach the code which loads an entity from the second level
cache before this entity can be available in the first level cache.

I do hope the problem is in my code but from what I can see with the
test case submited by Craig, I think something is broken with the
second level cache management in NHibernate.

On Sep 7, 7:59 pm, "Fabio Maulo" <[EMAIL PROTECTED]> wrote:
> 2008/9/7 Gildas <[EMAIL PROTECTED]>
>
>
>
> > Sure, but why is it always in the Session Cache ?
> > In a per request session mode, the Session cache is restarted at each
> > request or do I have misunderstand this ?
>
> > Before I updated the NHibernate to the last trunk version, at each new
> > request, the second level cache was requested before the entity can be
> > available in the first level cache.
>
> If entities instances are in the sessionCache is not for magic... ;)
>
> --
> Fabio Maulo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to