Fixing second level cache activation fuzzymess

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-08-13 12:11:03 -07:00
parent f29dbba7ce
commit c1cde2c7d5
4 changed files with 12 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
namespace SysCache.Models {
/// <summary>
/// Fake record in order to force the mappings to be updated
/// once the modules is enabled/disabled
/// </summary>
public class SysCacheRecord {
public virtual int Id { get; set; }
}
}

View File

@@ -81,6 +81,7 @@
</ItemGroup>
<ItemGroup />
<ItemGroup>
<Compile Include="Models\SysCacheRecord.cs" />
<Compile Include="Services\SysCacheDatabaseCacheConfiguration.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />

View File

@@ -24,7 +24,7 @@ namespace Orchard.Data.Conventions {
public void Apply(IOneToManyCollectionInstance instance) {
instance.Fetch.Join();
instance.Cache.NonStrictReadWrite();
instance.Cache.ReadWrite();
}
public void Accept(IAcceptanceCriteria<IOneToManyCollectionInspector> criteria) {

View File

@@ -3,7 +3,7 @@ using NHibernate.Cfg.Loquacious;
namespace Orchard.Data {
public class DefaultDatabaseCacheConfiguration : IDatabaseCacheConfiguration {
public void Configure(ICacheConfigurationProperties cache) {
// do nothing, no cache
cache.UseQueryCache = false;
}
}
}