mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-21 23:38:50 -05:00
Cache MediaInfo objects for up to 20 minutes to make sure we benefit from cached information even when processing files on network drives, especially when --filter is used followed by --format with lots of MediaInfo bindings.
https://www.filebot.net/forums/viewtopic.php?f=6&p=44112#p44111
This commit is contained in:
parent
4ef1ebe052
commit
468ded44aa
@ -1242,7 +1242,7 @@ public class MediaBindingBean {
|
||||
return null;
|
||||
}
|
||||
|
||||
private static final Cache<File, MediaInfo> mediaInfoCache = Caffeine.newBuilder().expireAfterAccess(5, TimeUnit.MINUTES).build();
|
||||
private static final Cache<File, MediaInfo> mediaInfoCache = Caffeine.newBuilder().expireAfterAccess(20, TimeUnit.MINUTES).build();
|
||||
|
||||
private synchronized MediaInfo getMediaInfo() {
|
||||
// use inferred media file (e.g. actual movie file instead of subtitle file)
|
||||
|
Loading…
Reference in New Issue
Block a user