aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2025-02-25 15:32:03 -0500
committerBond_009 <bond.009@outlook.com>2025-02-25 15:32:03 -0500
commit1131b051d8ec9f5cb0d0b3d42852c1a022a04932 (patch)
tree35088417716a434b617d9c51ac88959452e0ee62
parent33e8c18136f4dd380650962a18ebcb3bf2e7f087 (diff)
Backport pull request #13601 from jellyfin/release-10.10.z
Delete children from cache on parent delete Original-merge: 767a5e61930897d6151bf2b5b6c4940a288deb41 Merged-by: Bond-009 <bond.009@outlook.com> Backported-by: Bond_009 <bond.009@outlook.com>
-rw-r--r--Emby.Server.Implementations/Library/LibraryManager.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs
index 856810494..cc2092e21 100644
--- a/Emby.Server.Implementations/Library/LibraryManager.cs
+++ b/Emby.Server.Implementations/Library/LibraryManager.cs
@@ -457,6 +457,7 @@ namespace Emby.Server.Implementations.Library
foreach (var child in children)
{
_itemRepository.DeleteItem(child.Id);
+ _cache.TryRemove(child.Id, out _);
}
_cache.TryRemove(item.Id, out _);