Feature request: automatically clear old images from cache

https://lemm.ee/post/1365648

Feature request: automatically clear old images from cache - lemm.ee

Just checked mine, 1.6 gigs of cache. Anything over a couple hundred megs is extreme.
3.4G here
Holy shit. I’m at 8.8gb
Time to go outside for a bit 😆
Mobile internet is too expensive to go outside.
Same. There’s no reason to not clear old cached images, it’s very unlikely I’ll go back and look at those old posts again.
LRU cache seems like a good choice for caching images. Then set a max size and/or age of items in the cache and evict as necessary. This is the defacto caching mechanism in Apps.
I don’t like every app having its own max size, I’d hope Android at some point starts making an automatic cache control tool system-wide (that’s not a third party app) but it seems we’re stuck with this mechanism
It is a bit of wishful thinking, but could be cool if they had an AndroidX package with some kind of global caching system. Problem is though, how do you make a caching mechanism that can fit all use cases.
Start with LRU and maybe a frequency counter to keep frequently useful data. Then go from there. Same as most apps do themselves right now but redistribute as needed; slowly take a bit away from all other apps when one app needs more
How to check on iOS?

I assume it’s Settings > General > iPhone Storage, and then search for Liftoff using the magnifying glass once the spinner clears.

Mine only shows 61MB in Documents and Data though so I wonder if iOS isn’t telling me everything or if there’a an Android-specific issue here.

might be android-specific, mine says 250mb for documents & data
I was asking because I, too, have a few dozen MB
Mine says 1.4 go on iOS
What version of Liftoff are you on right now?
0.10.9
Oh that’s interesting. I was wondering if the cache was getting cleared each time a new version got installed on iOS and that’s why we’re not seeing the issue so much, but that rules it out. Thanks!
Yeah… I just checked and had 4.2 GBs
Definitely needs to be a priority fix.
Mine is only 200mb, i’m safe for now
0.9 GB on mine, just wiped it, thanks for the heads up!
Jesus. I just looked because of this post and had almost 10 freakin’ gigs!
Woah nice find. This is outta control. I think our new infinite scroll library will make this better. That should be in the next release and I’ll personally keep a close eye on this. Pretty wild. Thanks for reporting!
Please Liftoff devs. I’ve cleared 1 GB about 4 times so far.
oh my I was at 35, I think I need to stop scrolling