Why isn't this query cached?

Sep 24, 2008 at 6:35 PM
Find.Items.Where.Type.Eq(GetType(CategoryPage)).Select()


Coordinator
Sep 24, 2008 at 8:24 PM
Possibly this is due to a change in the latest release to disable caching by default. Does your web.config look anything like this? (For production use you need to use that cacheProvider)

    <database caching="true" cacheProviderClass="NHibernate.Caches.SysCache2.SysCacheProvider, NHibernate.Caches.SysCache2" />

Sep 25, 2008 at 5:40 AM
<database connectionStringName="SiteServer" flavour="SqlServer2005" caching="true" cacheProviderClass="NHibernate.Caches.SysCache2.SysCacheProvider, NHibernate.Caches.SysCache2" />

Everything is getting cached except this query.