this post was submitted on 17 Jul 2023
262 points (98.2% liked)

Liftoff!

4352 readers
1 users here now

A mobile client for Lemmy running on iOS and Android

founded 1 year ago
MODERATORS
 
top 30 comments
sorted by: hot top controversial new old
[–] [email protected] 34 points 1 year ago (2 children)

Just checked mine, 1.6 gigs of cache. Anything over a couple hundred megs is extreme.

[–] [email protected] 17 points 1 year ago (1 children)
[–] [email protected] 15 points 1 year ago (1 children)
[–] [email protected] 15 points 1 year ago (1 children)

Time to go outside for a bit 😆

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)
[–] [email protected] 10 points 1 year ago

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.

[–] [email protected] 33 points 1 year ago

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!

[–] [email protected] 28 points 1 year ago (1 children)

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.

[–] [email protected] 3 points 1 year ago (1 children)

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

[–] [email protected] 1 points 1 year ago (1 children)

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.

[–] [email protected] 1 points 1 year ago

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

[–] [email protected] 19 points 1 year ago* (last edited 1 year ago) (1 children)

Every Android app needs to be better at handling cache. It's ridiculous how some apps can accumulate gigabytes of old crap, sometimes not even marked as cache so one needs to wipe all the data and set up the app again from scratch.

[–] [email protected] 3 points 1 year ago (1 children)

Many times i've seen people changing their phones because of low storage, and then have the same issue.
When cleaning apps cache colde solve the problem without spending any money.

I have SD Maid scheduled to clean apps cache once a day, most apps don't have more that 200MB of cache, and plenty of free storage.

On Liftoff can be easily fixed by cleaning cache on exit, some apps have this options so don't eat all of your storage.

[–] [email protected] 2 points 1 year ago

I have SD maid too, but to actuality clear the caches automatically it needs accessibility services enabled, and that can totally fuck up Android security so I'm stuck with doing it manually. (Dunno if newer droid versions don't have this issue.)

There's no doubt in my mind that the removal of "clear all cache" button that used to be in Android was purely so that partners can sell more hardware.

I've begun to care about this when at one point I was running low on storage and found that even random apps like Revolut or a weather radar app can easily accumulate a gigabyte of garbage over time. So it's not a jab against Liftoff... Android apps overall just suck at this hard.

At least those that can export/import settings can be reset easily, but the rest... Ugh.

[–] [email protected] 8 points 1 year ago

Definitely needs to be a priority fix.

[–] [email protected] 6 points 1 year ago

0.9 GB on mine, just wiped it, thanks for the heads up!

[–] [email protected] 6 points 1 year ago

Jesus. I just looked because of this post and had almost 10 freakin' gigs!

[–] Still 4 points 1 year ago

oh my I was at 35, I think I need to stop scrolling

[–] [email protected] 4 points 1 year ago

Yeah... I just checked and had 4.2 GBs

[–] [email protected] 3 points 1 year ago

Please Liftoff devs. I've cleared 1 GB about 4 times so far.

[–] [email protected] 2 points 1 year ago
[–] [email protected] 1 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago (3 children)

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.

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago) (1 children)
[–] [email protected] 1 points 1 year ago (1 children)

What version of Liftoff are you on right now?

[–] [email protected] 1 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago

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!

[–] [email protected] 4 points 1 year ago

might be android-specific, mine says 250mb for documents & data

[–] [email protected] 2 points 1 year ago

I was asking because I, too, have a few dozen MB

[–] drew_belloc 1 points 1 year ago

Mine is only 200mb, i'm safe for now

load more comments
view more: next ›