Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase cache size options #111

Open
IAmTheWebb opened this issue Mar 21, 2023 · 4 comments
Open

Increase cache size options #111

IAmTheWebb opened this issue Mar 21, 2023 · 4 comments

Comments

@IAmTheWebb
Copy link

I have a fairly large image collection 40,000+ and around 200gb in size, I think when I open the app it starts working its way through my collection caching all the old images through to the newest but due to the size when I scroll back the old images will have dropped from the cache.

Describe the solution you'd like
I'm not exactly sure if assigning extra cache is feasible but I'd happily dedicate more space to it if it was. Ideally I'd like to have all the thumbails cached.

@scubajeff
Copy link
Owner

Ok. let's add a no-limit option

@scubajeff
Copy link
Owner

2nd thought, the cache is actually controlled by the upstream okhttp library, and heavily depends on your web server's cache controll setting too. it means larger cache size won't help.

@IAmTheWebb
Copy link
Author

Ahh ok, so that sounds like it might be something unrelated.
I had another look and I spotted that under Settings - Storage - Statistics it was maxing at around 826mb used in internal storage.
I tried compiling a version of the app replacing all the 800s that were on a line mentioning cache with a considerably higher number and now I can turn on airplane mode to scroll through the history of the albums I've opened and they all seem to be persisting.
Apologies if I'm going down completely the wrong avenue.

@scubajeff
Copy link
Owner

No sure if that's because okhttp is smart enough to load cache when there is no network available. okhttp is just like a web browser, it will follow web server's cache rule

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants