Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
andro23
Level 7

Cachefs Unpredictable Behaviour

I am writing an app that downloads some images during its runtime putting them in the cache (cachefs:/MyAppImages).
A 32GB microSD is attached to my Roku Ultra 4640X having the latest OS version 8.0.1 build 4042-29.
After restarting the app, sometimes it is able to find cachef:/MyAppImages with the images downloaded inside; other times it doesn't find the directory and it keeps on downloading the images again and again. When I go check the memory card usage in Settings -> System -> About, I find it having the same usage that it had right after Roku formatted it (1.7/31.4 GB). I was expecting that it won't remove my cached files unless the memory card is full and the device needs more space on the memory card for other usages. Any idea why it is doing that?
0 Kudos
1 Reply
andro23
Level 7

Re: Cachefs Unpredictable Behaviour

I changed my approach and created files on root cachefs:/ and it worked as expected and documented this time.
0 Kudos