π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Clear image cache on logout
ashil-pilot1a2f36f8a705
diff --git a/mobile/apps/photos/lib/core/configuration.dart b/mobile/apps/photos/lib/core/configuration.dartindex e6c702001a..0aa16d57c9 100644--- a/mobile/apps/photos/lib/core/configuration.dart+++ b/mobile/apps/photos/lib/core/configuration.dart@@ -9,6 +9,7 @@ import 'package:ente_contacts/contacts.dart';import "package:ente_crypto/ente_crypto.dart";import 'package:ente_lock_screen/lock_screen_host.dart';import "package:flutter/services.dart";+import 'package:flutter_cache_manager/flutter_cache_manager.dart';import 'package:flutter_secure_storage/flutter_secure_storage.dart';import 'package:logging/logging.dart';import 'package:path_provider/path_provider.dart';@@ -235,6 +236,13 @@ class Configuration implements LockScreenHost, AccountDeletionHost {ThumbnailInMemoryLruCache.clearAll();FileLruCache.clearAll();+ // Clear image cache+ try {+ await DefaultCacheManager().emptyCache();+ } catch (e) {+ _logger.warning("Failed to clear image cache", e);+ }+// Clear video cachetry {await VideoCacheManager.instance.emptyCache();