After at least 10 minutes of stopping Plex playback:
ncdu 1.13 ~ Use the arrow keys to navigate, press ? for help
--- /dev/shm -------------------------------------------------------------------
953.4 MiB [##########] /media_cache
It doesn't seem from the logs you are using that much so perhaps you have something else in there?
2020/01/09 23:17:23 INFO : cache-cleanup: chunks 7, est. size: 70M
2020/01/09 23:18:23 INFO : cache-cleanup: chunks 3, est. size: 30M
2020/01/09 23:19:24 INFO : cache-cleanup: chunks 1, est. size: 10M
2020/01/09 23:20:24 INFO : cache-cleanup: chunks 1, est. size: 10M
2020/01/09 23:21:24 INFO : cache-cleanup: chunks 1, est. size: 10M
2020/01/09 23:25:24 INFO : cache-cleanup: chunks 10, est. size: 90.455M
2020/01/09 23:26:24 INFO : cache-cleanup: chunks 10, est. size: 90.455M
2020/01/09 23:27:24 INFO : cache-cleanup: chunks 6, est. size: 50.455M
2020/01/09 23:28:24 INFO : cache-cleanup: chunks 8, est. size: 70.455M
2020/01/09 23:29:24 INFO : cache-cleanup: chunks 7, est. size: 60.455M
2020/01/09 23:30:24 INFO : cache-cleanup: chunks 8, est. size: 70.455M
2020/01/09 23:31:24 INFO : cache-cleanup: chunks 5, est. size: 40.455M
2020/01/09 23:32:24 INFO : cache-cleanup: chunks 4, est. size: 30.455M
2020/01/09 23:39:24 INFO : cache-cleanup: chunks 10, est. size: 93.416M
2020/01/09 23:40:28 INFO : cache-cleanup: chunks 35, est. size: 343.416M
I just rebooted it and since I was caching it to /dev/shm, the RAM was flushed, but I can tell you that the name of the content I was playing appeared as a folder with numeric file names.
It cleans the chunks based on the chunk interval and it being over the chunk total size value:
The total size that the chunks can take up on the local disk.
If the cache exceeds this value then it will start to delete the oldest chunks until it goes under this value.
Well clearly it isn't doing that. I have files in the folder from Plex playback several hours ago.
The more important issue that's plaguing me is that Plex seems to scan folders a lot slower with cache. Without it, it would zip through with more than 20 folders a second. Now it takes 5-6secs per folder.
I'm not noticing faster playback or faster seeks either with the supposed Plex integration proving to be a gimmick only.
I'm happy to help but you haven't provided too much to help yet other than it doesn't work.
The cache with plex integration is slower as that's the whole purpose of it. It slows down other API related tasks to 1 worker except if you are playing movies. Once a movie is picked up, it increases the workers.
You wouldn't see faster playback or seeks really as that's not the purpose. The purpose of the cache is to handle keeping chunks on disk as it's helpful if you have a player that opens and closes files a lot. It also reduces API hits.
If you want to provide some of the details to help see what the issue is, we're happy to help.