Running Plexamp 3.4.7 on Android 11 Pixel phone and I have the cache limit set to 2GB in the settings. Just looked at storage and the cache was up to 8GB just now. Doesn’t look like the limit setting is being used
Do you have downloaded items?
The cache is (as far as I know) only used to cache tracks you have been playing. Downloads would show as extra storage in Android. Maybe as cache too?
No downloads. Cache was 8.2 Gb before I cleared it.
Mine is set at 4GB and the system reports 4.98GB in cache. So you might be on to something with it not fully respecting the limit…
Pixel 3 running Android 11.
I’m going to guess @elan is going to need to see logs if it keeps growing beyond limit. I asked a few folks about this and none of them could reproduce it
Ok I just did the following
- Set cache to 512mb limit.
- Cleared cache
- Played a few playlists
- Looked at cache size which is now 1.7 GB
- Grabbed logs attached
128688828174219.zip (238.4 KB)
Edit:. Should also mention I exited Plexamp and went back in before each playlist to see if cache was cleared at startup.
Just want to keep this visible. Just came back from a road trip. Plexamp cache is at 3.5 GB and limit is set to 2GB. It will grow indefinitely until I clear it, which is what I have to do on my space challenged phone.
Just tried Plexamp 3.5. Cleared existing cache, set max size to 512 MB. Cache is currently at 2 GB and growing.
Not sure how or when the cache size is supposed to be pared down to the limit set in the settings but it just seems to be ignored completely.
I can re-send logs if needed.
For those of you whose cache stays set at the limit…at what point does it get lowered? At startup? Per song? When you start an album? Just want to know what to look for.
As far as I can tell it is not the playback cache which the setting controls (for when you are in a tunnel or similar) but the cache of album artwork. The more items in the playlist with different artwork the larger the app cache becomes it seems.
Well that’s even stranger then. The setting in the app implies that the overall cached files are controlled by that setting. If they aren’t they should be.
Sorry I worded that badly. I don’t disagree, the setting should cover all the cache files. Just seems to be what it is doing.
No problem. Hopefully that fix gets added in soon. My phone storage is stretched thin as it is.
Don’t mean to be.a squeaky wheel here (yes I do) just want to make sure this stays visible. Cache setting is definitely ignored for me. For now just completely clearing the cache every so often (which defeats the purpose of cached media…)
Hopefully a fix for this makes it in soon.
To clarify—the media cache is the one tied to the setting. Artwork and other such tiny things are a fixed size, also cleaned up.
In your logs I see one cleanup, it looks like potentially the periodic ones aren’t properly being scheduled. We’ll have a further look over here. I think you can manually trigger one by changing the cache size limit (e.g. bump to 1GB, then back down to 512KB and it should force a cleanup).
Well setting cache to 4GB and then to 2GB knocked the size back down to 2GB (cache was 5GB before that)
Otherwise if there is a scheduled cleaning I don’t think that is happening for me. Not sure when it should happen on a scheduled basis.
agreed! we’ll investigate.
So did a bit more investigation, and it seems like the cache is cleaned up:
- At app startup.
- At most once an hour (wall clock time).
- More frequently if free space is less than 200MB.
Is it possible you’re just watching disk usage grow during the hour between startup and one hour?
Well I can say the cache is not cleaned up for me at app startup. I have it set to 2gb and cache is at 3gb currently. Starting the app doesn’t reduce the cache. I’ll see if the hourly cleanup does anything.
I stand corrected, it actually does skip the cleanup the very first time on boot up so as to not slow things down.
So it cleans cache (a) every hour or (b) more often if disk space is getting low.