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 />
|
<ItemGroup />
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Compile Include="Models\SysCacheRecord.cs" />
|
||||||
<Compile Include="Services\SysCacheDatabaseCacheConfiguration.cs" />
|
<Compile Include="Services\SysCacheDatabaseCacheConfiguration.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||||
|
@@ -24,7 +24,7 @@ namespace Orchard.Data.Conventions {
|
|||||||
|
|
||||||
public void Apply(IOneToManyCollectionInstance instance) {
|
public void Apply(IOneToManyCollectionInstance instance) {
|
||||||
instance.Fetch.Join();
|
instance.Fetch.Join();
|
||||||
instance.Cache.NonStrictReadWrite();
|
instance.Cache.ReadWrite();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Accept(IAcceptanceCriteria<IOneToManyCollectionInspector> criteria) {
|
public void Accept(IAcceptanceCriteria<IOneToManyCollectionInspector> criteria) {
|
||||||
|
@@ -3,7 +3,7 @@ using NHibernate.Cfg.Loquacious;
|
|||||||
namespace Orchard.Data {
|
namespace Orchard.Data {
|
||||||
public class DefaultDatabaseCacheConfiguration : IDatabaseCacheConfiguration {
|
public class DefaultDatabaseCacheConfiguration : IDatabaseCacheConfiguration {
|
||||||
public void Configure(ICacheConfigurationProperties cache) {
|
public void Configure(ICacheConfigurationProperties cache) {
|
||||||
// do nothing, no cache
|
cache.UseQueryCache = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user