mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing second level cache activation fuzzymess
--HG-- branch : 1.x
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
@@ -81,6 +81,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<ItemGroup>
|
||||
<Compile Include="Models\SysCacheRecord.cs" />
|
||||
<Compile Include="Services\SysCacheDatabaseCacheConfiguration.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
|
@@ -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) {
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user