BUG (Critical): PMS on SHIELD cache folder does not honor Plex Data Storage Location

Server Version#: 1.19.4.2935
Platform: SHIELD TV Pro 2019

When the PMS storage location on SHIELD is set to a removable drive, the cache folder is created in:

[external drive]\Android\data\com.plexapp.mediaserver.smb

But it remains empty and instead keeps recreating internal\Android\data\com.plexapp.mediaserver.smb\cache and filling that folder up instead.

Clearing cache causes the cache folder in internal to disappear, and get recreated again the next time PMS is started. Interestingly, deleting cache on the removable drive path will also see it recreated by PMS though remains unused.

This is a big problem with PMS on SHIELD because it has so little internal storage. I’m guessing I can work around this by adopting storage instead… maybe, but I don’t want to have to do this.

I noticed this after I made it a habit of keeping an eye on how much of the internal storage PMS eats up after another bug involving intro scanning was trashing it despite being set to use the removable drive. That bug is fixed now apparently with the last release, and I’m not sure if the cache folder not honoring your PMS storage location preference is a regression or not but it definitely is a problem.

Here is an example line showing it keeps using internal cache folder with all other data moved to removable:

Jun 23, 2020 00:29:24.956 [8573] DEBUG - Photo cache obtained 322129 bytes from /library/metadata/16256/thumb/1592741170?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Jun 23, 2020 00:29:24.956 [8573] DEBUG - Saving original media file to /storage/emulated/0/Android/data/com.plexapp.mediaserver.smb/cache/PhotoTranscoder/63/63a7ad971c4efe3f094877d8834ed57652165fd2.jpg

4 Likes