Created
May 19, 2021 11:40
-
-
Save KevinJump/02b1bf913be17565f9bb1e6cae65ce78 to your computer and use it in GitHub Desktop.
Disables uSync.Complete's sync cache - which is used to speed up publishing - however if you have performance issues you can remove it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Umbraco.Core; | |
using Umbraco.Core.Composing; | |
using uSync.Expansions.Core.Cache; | |
namespace uSyncCacheDisable | |
{ | |
[RuntimeLevel(MinLevel = RuntimeLevel.Run)] | |
[ComposeAfter(typeof(SyncCacheComposer))] | |
public class DisableCacheComposer : IUserComposer | |
{ | |
public void Compose(Composition composition) | |
{ | |
composition.Components().Remove<SyncCacheComponent>(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment