Cache size
- Langage dominant
- Kotlin
- Étoiles
- 5.6k
- Forks
- 2k
- Merge moyen
- 2 j 2 h
- PR mergées (30 j)
- 102
Description
The current cache size is 10Mb which is way to small for any larger photo collection.
There is a PR (#144) which allows to manually resize the cache. I think this is not the best idea as the user has to do it manually, so this might be there as a fallback.
In https://github.com/nextcloud/android/issues/177#issuecomment-236945762 this was proposed:
- \>=40% of the internal storage available: set cache size to 5% of internal storage size of the device (cache is always in internal storage)
- < 40% of the internal storage available: set cache size to 10% of the remaining space available but at least 100MByte (which still gives you enough space for thumbnails and resized images)
Every time the apps starts the cache size will be checked and adjusted.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Examinez d’abord la PR #144 et la proposition de dimensionnement du cache référencée depuis l’issue #177. Suivez ensuite l’initialisation du cache de l’application Android et les vérifications disponibles du stockage interne, puis vérifiez qu’au démarrage les règles de pourcentage et de minimum indiquées sont appliquées sans nécessiter de redimensionnement manuel.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- android, kotlin
- Domaine
- mobile-dev
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 42/100