From c88ba7afa580122ece287ff349796e694b01286f Mon Sep 17 00:00:00 2001 From: Shannon Date: Tue, 22 Dec 2020 13:49:26 +1100 Subject: [PATCH] notes, removes todo --- .../PublishedSnapshotServiceEventHandler.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.PublishedCache.NuCache/PublishedSnapshotServiceEventHandler.cs b/src/Umbraco.PublishedCache.NuCache/PublishedSnapshotServiceEventHandler.cs index 2c37356191..a8f3f9338b 100644 --- a/src/Umbraco.PublishedCache.NuCache/PublishedSnapshotServiceEventHandler.cs +++ b/src/Umbraco.PublishedCache.NuCache/PublishedSnapshotServiceEventHandler.cs @@ -155,17 +155,15 @@ namespace Umbraco.Web.PublishedCache.NuCache } /// - /// If a is ever saved with a different culture, we need to rebuild all of the content nucache table + /// If a is ever saved with a different culture, we need to rebuild all of the content nucache database table /// private void OnLanguageSaved(ILocalizationService sender, Core.Events.SaveEventArgs e) { - // TODO: This should be a cache refresher call! - // culture changed on an existing language var cultureChanged = e.SavedEntities.Any(x => !x.WasPropertyDirty(nameof(ILanguage.Id)) && x.WasPropertyDirty(nameof(ILanguage.IsoCode))); if (cultureChanged) { - // Rebuild all content types + // Rebuild all content for all content types _publishedSnapshotService.Rebuild(contentTypeIds: Array.Empty()); } }