mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
Switch to plain fs based caching mechanism
This commit is contained in:
parent
d08475d5af
commit
6796462b13
6 changed files with 33 additions and 34 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue