Only process each CacheInstruction once.

This commit is contained in:
Mole
2021-04-12 13:27:25 +02:00
parent 3dd6fcf782
commit b117f006c0
4 changed files with 99 additions and 11 deletions

View File

@@ -286,7 +286,7 @@ namespace Umbraco.Cms.Infrastructure.Sync
try
{
CacheInstructionServiceProcessInstructionsResult result = CacheInstructionService.ProcessInstructions(_released, LocalIdentity, _lastPruned);
CacheInstructionServiceProcessInstructionsResult result = CacheInstructionService.ProcessInstructions(_released, LocalIdentity, _lastPruned, _lastId);
if (result.InstructionsWerePruned)
{
_lastPruned = _lastSync;
@@ -307,8 +307,8 @@ namespace Umbraco.Cms.Infrastructure.Sync
_syncIdle.Set();
}
}
}
/// <summary>
/// Reads the last-synced id from file into memory.
/// </summary>