mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #3837] [MERGED] Fix BaseItems not being cached in-memory #9721
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/3837
Author: @cvium
Created: 8/7/2020
Status: ✅ Merged
Merged: 8/7/2020
Merged by: @Bond-009
Base:
master← Head:fix_memorycache📝 Commits (1)
0cf7599Use MemoryCache.Set since SetValue does not flush to cache automatically.📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
Emby.Server.Implementations/Library/LibraryManager.cs(+1 -1)📄 Description
Changes
Changed to MemoryCache.Set since SetValue does not flush automatically. An entry is only added to the MemoryCache when the entry is disposed, which Set does for us. No BaseItems were ever cached 🤣
I scanned my TV shows with "Refresh all metadata" for 19 minutes and got the following results:
Memory allocations before the change:

Memory allocations after the change

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.