Enable response compression (br and gzip) for images and static assets. After we scan a library, kick of a cleanup of cache to ensure if archives were changed, the cache is cleared too.

This commit is contained in:
Joseph Milazzo 2021-03-12 10:37:42 -06:00
parent 2a8931406d
commit d3b42081cb
7 changed files with 82 additions and 14 deletions

View file

@ -78,6 +78,8 @@ namespace API.Services
{
_logger.LogInformation("Enqueuing library scan for: {LibraryId}", libraryId);
BackgroundJob.Enqueue(() => _scannerService.ScanLibrary(libraryId, forceUpdate));
BackgroundJob.Enqueue(() => _cleanupService.Cleanup()); // When we do a scan, force cache to re-unpack in case page numbers change
}
public void CleanupChapters(int[] chapterIds)