icefields / Power-Ampache-2

second version of my popular ampache Android app
GNU General Public License v3.0
44 stars 2 forks source link

Album Art Caching #126

Closed dhiachou closed 1 month ago

dhiachou commented 1 month ago

Rendering album art is currently kind of slow (depending on internet speed + server responsiveness).

It would be nice to cache the album arts locally on the phone to avoid reloading them from the server every time we access an album or a song.

icefields commented 1 month ago

hi, album arts are already cached. I use both memory cache and disk cache. I reserve 5% of the app memory for image cache, which are also cached aggressively on disk, to be available in offline mode.

icefields commented 1 month ago

I just tested the cache.

As a last test I put the phone in airplane mode, and images still load (directly from cache with no network).

Here's a screenshot of the directory containing the cached images on my device after a fresh installation of the app.

image

icefields commented 1 month ago

I'm going to close this ticket. Feel free to reopen it if you find evidence that your cache is not working