Skip to content

Commit

Permalink
make sure clear the folder cache when we do it.
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed Aug 2, 2023
1 parent 153ae3a commit f7ab65a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions uSync.BackOffice/SyncHandlers/SyncHandlerContainerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
using uSync.BackOffice.Configuration;
using uSync.BackOffice.Services;
using uSync.Core;
using uSync.Core.Serialization;

namespace uSync.BackOffice.SyncHandlers
{
Expand Down Expand Up @@ -105,6 +106,11 @@ public virtual IEnumerable<uSyncAction> ProcessPostImport(string folder, IEnumer
/// <returns></returns>
protected IEnumerable<uSyncAction> UpdateFolder(int folderId, string folder, HandlerSettings config)
{
if (this.serializer is SyncContainerSerializerBase<TObject> containerSerializer)
{
containerSerializer.InitializeCache();
}

var actions = new List<uSyncAction>();
var folders = GetFolders(folderId);
foreach (var fdlr in folders)
Expand Down

0 comments on commit f7ab65a

Please sign in to comment.