mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
Switch to plain fs based caching mechanism
This commit is contained in:
@@ -24,7 +24,7 @@ class AssetNotifier extends StateNotifier<List<AssetResponseDto>> {
|
||||
final stopwatch = Stopwatch();
|
||||
|
||||
|
||||
if (_assetCacheService.isValid() && state.isEmpty) {
|
||||
if (await _assetCacheService.isValid() && state.isEmpty) {
|
||||
stopwatch.start();
|
||||
state = await _assetCacheService.get();
|
||||
debugPrint("Reading assets from cache: ${stopwatch.elapsedMilliseconds}ms");
|
||||
|
||||
Reference in New Issue
Block a user