I have a bag defined on a class like this : <bag name="Memberships" access="property" table="Memberships" lazy="true" inverse="true" fetch="select"> <cache region="Memberships Default Cache Region" usage="nonstrict-read-write" /> <key column="GroupId" /> <one-to-many class="Membership, Models" /> </bag>
On my Memberships class I also have a cache tag: <cache region="Memberships Default Cache Region" usage="nonstrict-read-write" /> When I access the Memberships collection the second time it dutifully retrieves it from the collection cache. The way it should. When I delete a membership my expectation is that the cache region is made stale and the next call to the memberships collection should be from the DB. Unfortunately it is not. Next we tried evicting the cache region. It still pulled from the cache! Finally, we tried evicting the collection and it worked. So, is the region=XXX on a bag ignored? Am I doing something wrong? thanks, Dan -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nhusers?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
