Skip to content

Commit

Permalink
Updates large image cache to 12 images
Browse files Browse the repository at this point in the history
format
  • Loading branch information
martyfuhry committed Apr 22, 2024
1 parent 955d78d commit 9a83cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mobile/lib/shared/cache/custom_image_cache.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:immich_mobile/modules/asset_viewer/image_providers/immich_remote
/// so that a single large image does not evict all small iamges
final class CustomImageCache implements ImageCache {
final _small = ImageCache();
final _large = ImageCache();
final _large = ImageCache()..maximumSize = 12; // Maximum 12 images

@override
int get maximumSize => _small.maximumSize + _large.maximumSize;
Expand Down

0 comments on commit 9a83cda

Please sign in to comment.