Changes PublishedSnapshotService to lazily load it's caches on demand when they are required instead of relying on an external initializer to load them.
This commit is contained in:
@@ -40,10 +40,6 @@ namespace Umbraco.Web.PublishedCache.NuCache
|
||||
return false;
|
||||
}
|
||||
|
||||
// this initializes the caches.
|
||||
// TODO: This is still temporal coupling (i.e. Initialize)
|
||||
_publishedSnapshotService.LoadCachesOnStartup();
|
||||
|
||||
// we always want to handle repository events, configured or not
|
||||
// assuming no repository event will trigger before the whole db is ready
|
||||
// (ideally we'd have Upgrading.App vs Upgrading.Data application states...)
|
||||
|
||||
Reference in New Issue
Block a user