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()); } }