Better caching for mobile (#521)

* Use custom caches in all modules

* Cache Settings

* Fix wrong key

* Create custom cache repository based on hive

* Show cache usage in settings

* Show cache sizes

* Change settings ranges and default value

* Handle cache clear by operating system

* Resolve review comments
This commit is contained in:
Matthias Rupp
2022-08-30 05:44:43 +02:00
committed by GitHub
parent e527685ebf
commit 25e68cf826
17 changed files with 593 additions and 44 deletions

View File

@@ -149,5 +149,18 @@
"setting_notifications_notify_immediately": "immediately",
"setting_notifications_notify_minutes": "{} minutes",
"setting_notifications_notify_hours": "{} hours",
"setting_notifications_notify_never": "never"
"setting_notifications_notify_never": "never",
"cache_settings_title": "Caching Settings",
"cache_settings_subtitle": "Control the caching behaviour of the Immich mobile application",
"cache_settings_thumbnail_size": "Thumbnail cache size ({} assets)",
"cache_settings_image_cache_size": "Image cache size ({} assets)",
"cache_settings_album_thumbnails": "Library page thumbnails ({} assets)",
"cache_settings_clear_cache_button_title": "Clears the app's cache. This will significantly impact the app's performance until the cache has rebuilt.",
"cache_settings_clear_cache_button": "Clear cache",
"cache_settings_statistics_title": "Cache usage",
"cache_settings_statistics_assets": "{} assets ({})",
"cache_settings_statistics_thumbnail": "Thumbnails",
"cache_settings_statistics_album": "Library thumbnails",
"cache_settings_statistics_shared": "Shared album thumbnails",
"cache_settings_statistics_full": "Full images"
}