Clear cached PublishedDataTypes when content types are updated (#15253)

* Clear cached PublishedDataTypes when content types are updated

* Optimize published data type cache initialization
This commit is contained in:
Ronald Barendse
2023-11-21 10:28:26 +01:00
committed by GitHub
parent 3ff6bd191a
commit 48bfbb00cd
3 changed files with 23 additions and 20 deletions

View File

@@ -189,6 +189,9 @@ internal class PublishedSnapshotService : IPublishedSnapshotService
}
}
// Ensure all published data types are updated
_publishedContentTypeFactory.NotifyDataTypeChanges();
Notify<IContentType>(_contentStore, payloads, RefreshContentTypesLocked);
Notify<IMediaType>(_mediaStore, payloads, RefreshMediaTypesLocked);