OpenPHT Cache/Thumbnail Management

Sorry if this has been posted before but nothing turned up while searching.

One issue with OpenPHT/Rasplex that I’d like to document is with OpenPHT’s cache/thumbnail management. Currently, it just grows forever until it inevitably causes problems. For me, it takes 3-4 months before the cache fills, but that rate will vary depending on usage and SD card size.

But every once in a while the cache will fill and OpenPHT will suddenly stop showing any thumbnails at all. The only way to fix it is to manually wipe the cache and start fresh. It’d be great if a future version of OpenPHT was selectively purging cached images (least-recently accessed first) once the available storage space started filling up.

I also have a suspicion that OpenPHT is recaching thumbnails repeatedly, because it doesn’t take 3-4 months before I’ve scrolled through my whole library.

Anyway, for anyone else running into this issue, sshing into your device and running this will fix it. I have it setup as a cron job to check the cache daily and wipe it if it exceeds 80% capacity.

rm -rf /.kodi/userdata/Thumbnails/* && reboot

Note that it takes a minute or two.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.