There are times when I am playing a media file direct from my NAS using Infuse via its own SMB, and I wish that the buffer that is cached had a TTL set. Especially when the remote file is extremely large, I might start the file, pause, then let it buffer, but then for one reason or another, perhaps even a mistake, I close down Infuse and it immediately removes the cache for that file.
I can understand why this is the case, but I think, in combination with being able to set a hard limit for the cache to be either a certain percentage of free space or a pre-defined size, allowing users to set a Time to Live on each files’ cached buffer could be really useful.
I once tried to do this manually when I had spent ages pre-buffering, only to have to shutdown my computer due to travel. I tried copying the cache file from Infuse’s Library directory (macOS), and then pasting it back later in a new session using the new cache file name. It didn’t work and the playback just immediately stopped.
I think only allowing a limited set of pre-defined options, purposefully without an unlimited option, could be the best way of making sure users don’t accidentally fill up their drives with cache. Something like 2h; 4h; 8h; 24h; 48h starting from end of a file play back.
Even just keeping it super simple with only one 30 mins TTL could help, just so accidental Infuse / playback closures don’t mean immediately having to re-start the buffer from scratch.