Fixes macro parameter id assignment at the repo level.

This commit is contained in:
Shannon
2013-09-20 13:40:32 +10:00
parent 6a343ef2b6
commit 661bc3149f
4 changed files with 29 additions and 7 deletions

View File

@@ -142,7 +142,7 @@ namespace Umbraco.Core.Persistence
internal virtual IMacroRepository CreateMacroRepository(IDatabaseUnitOfWork uow)
{
return new MacroRepository(uow, RuntimeCacheProvider.Current);
return new MacroRepository(uow, _disableAllCache ? (IRepositoryCacheProvider)NullCacheProvider.Current : RuntimeCacheProvider.Current);
}
internal virtual IMemberRepository CreateMemberRepository(IDatabaseUnitOfWork uow)