NuCache+Scope - tests
This commit is contained in:
@@ -224,7 +224,7 @@ namespace Umbraco.Core.Persistence
|
||||
// ensures that the database is configured, else throws
|
||||
private void EnsureConfigured()
|
||||
{
|
||||
using (new ReadLock(_lock))
|
||||
using (new ReadLock(_lock)) // fixme - bad, allocations!
|
||||
{
|
||||
if (Configured == false)
|
||||
throw new InvalidOperationException("Not configured.");
|
||||
|
||||
@@ -6,8 +6,9 @@ namespace Umbraco.Core.Services.Changes
|
||||
public enum ContentTypeChangeTypes : byte
|
||||
{
|
||||
None = 0,
|
||||
RefreshMain = 1, // changed, impacts content (adding ppty or composition does NOT)
|
||||
RefreshOther = 2, // changed, other changes
|
||||
Remove = 4 // item type has been removed
|
||||
Create = 1, // item type has been created, no impact
|
||||
RefreshMain = 2, // changed, impacts content (adding ppty or composition does NOT)
|
||||
RefreshOther = 4, // changed, other changes
|
||||
Remove = 8 // item type has been removed
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ namespace Umbraco.Core.Services
|
||||
var isNewContentType = dirty.WasPropertyDirty("HasIdentity");
|
||||
if (isNewContentType)
|
||||
{
|
||||
AddChange(changes, contentType, ContentTypeChangeTypes.RefreshOther);
|
||||
AddChange(changes, contentType, ContentTypeChangeTypes.Create);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user