Gallery icon indicating copy to clipboard operation
Gallery copied to clipboard

Hope to add the option to set the cache upper limit

Open LuoXiaoHel-Cat opened this issue 1 year ago • 3 comments

Checklist

  • [X] I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • [X] I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • [X] I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • [X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • [X] This issue contains only one feature request.
  • [X] I have read and understood the contribution guidelines.
  • [ ] I optionally donated to support the Fossify mission.

Feature description

add or remove the cache size limit .

Why do you want this feature?

cache limit 250MB is tooooooooo small . it take so much time to reload the thumbnails.

Additional information

No response

LuoXiaoHel-Cat avatar Jul 12 '24 17:07 LuoXiaoHel-Cat

We can't make the cache larger than 250 MB (library limit: https://github.com/bumptech/glide/wiki/Configuration#disk-cache). Also, problem with slow loading of thumbnails is known and reported here: https://github.com/FossifyOrg/Gallery/issues/136.

Aga-C avatar Jul 12 '24 18:07 Aga-C

For me, the documentation reads like the 250MB is a default value that can be changed: https://github.com/bumptech/glide/blob/3.0/library/src/main/java/com/bumptech/glide/load/engine/cache/DiskCache.java#L18

According to the linked Wiki page: You can set the size of the disk cache using the InternalCacheDiskCacheFactory.

pegelf avatar Jan 06 '25 05:01 pegelf

so happy to hear that!!!

LuoXiaoHel-Cat avatar Jan 06 '25 08:01 LuoXiaoHel-Cat