Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Do stale cache check before updating

laurenspriem6fd9f0f06652
diff --git a/mobile/apps/photos/lib/services/magic_cache_service.dart b/mobile/apps/photos/lib/services/magic_cache_service.dart
index 0790199698..2d60e8214b 100644
--- a/mobile/apps/photos/lib/services/magic_cache_service.dart
+++ b/mobile/apps/photos/lib/services/magic_cache_service.dart
@@ -304,6 +304,7 @@ class MagicCacheService {
if (forced) {
_pendingUpdateReason.add("Forced update");
}
+ await _updateCacheIfTheTimeHasCome();
try {
if (_pendingUpdateReason.isEmpty || _isUpdateInProgress) {
_logger.info(