diff options
| author | Niels van Velzen <nielsvanvelzen@users.noreply.github.com> | 2026-05-04 17:59:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-04 17:59:48 +0200 |
| commit | d359d2f7a865329ba10915dbd68dc1ab54450ffa (patch) | |
| tree | 03b52cf498f704668b74ab5de143f9b261c72db0 /Jellyfin.Api/Controllers/LibraryStructureController.cs | |
| parent | ba268cc3fbb9b2cde2bfb3e5d6074474b6904a0f (diff) | |
| parent | 0f6bab03eb29030bbe0f00ed32ad72f97e321e62 (diff) | |
Merge pull request #16166 from Shadowghost/ignore-caching
Implement ignore rule caching
Diffstat (limited to 'Jellyfin.Api/Controllers/LibraryStructureController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/LibraryStructureController.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Jellyfin.Api/Controllers/LibraryStructureController.cs b/Jellyfin.Api/Controllers/LibraryStructureController.cs index 8136dec177..e46795554b 100644 --- a/Jellyfin.Api/Controllers/LibraryStructureController.cs +++ b/Jellyfin.Api/Controllers/LibraryStructureController.cs @@ -189,6 +189,7 @@ public class LibraryStructureController : BaseJellyfinApiController var newLib = _libraryManager.GetUserRootFolder().Children.FirstOrDefault(f => f.Path.Equals(newPath, StringComparison.OrdinalIgnoreCase)); if (newLib is CollectionFolder folder) { + _libraryManager.ClearIgnoreRuleCache(); foreach (var child in folder.GetPhysicalFolders()) { await child.RefreshMetadata(CancellationToken.None).ConfigureAwait(false); @@ -197,9 +198,12 @@ public class LibraryStructureController : BaseJellyfinApiController } else { + _libraryManager.ClearIgnoreRuleCache(); // We don't know if this one can be validated individually, trigger a new validation await _libraryManager.ValidateMediaLibrary(new Progress<double>(), CancellationToken.None).ConfigureAwait(false); } + + _libraryManager.ClearIgnoreRuleCache(); } else { |
