Move cache instructions pruning to background job (#19598)
* Remove pruning logic from `CacheInstructionService.ProcessInstructions()` * Add and register `CacheInstructionsPruningJob` background job * Add unit tests * Remove breaking change in ICacheInstructionService * Adjust some obsoletion messages to mention v17 * Added missing scope * Update tests * Fix obsoletion messages version * Update ProcessInstructions methods summary
This commit is contained in:
@@ -189,6 +189,7 @@ public static partial class UmbracoBuilderExtensions
|
||||
builder.Services.AddRecurringBackgroundJob<WebhookFiring>();
|
||||
builder.Services.AddRecurringBackgroundJob<WebhookLoggingCleanup>();
|
||||
builder.Services.AddRecurringBackgroundJob<ReportSiteJob>();
|
||||
builder.Services.AddRecurringBackgroundJob<CacheInstructionsPruningJob>();
|
||||
|
||||
|
||||
builder.Services.AddSingleton(RecurringBackgroundJobHostedService.CreateHostedServiceFactory);
|
||||
|
||||
Reference in New Issue
Block a user