Skip to content

Instantly share code, notes, and snippets.

@KevinJump
Created May 19, 2021 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KevinJump/02b1bf913be17565f9bb1e6cae65ce78 to your computer and use it in GitHub Desktop.
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.
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