|
@@ -11,6 +11,7 @@ import 'package:logging/logging.dart';
|
|
|
import 'package:motionphoto/motionphoto.dart';
|
|
|
import 'package:path/path.dart';
|
|
|
import 'package:photos/core/cache/image_cache.dart';
|
|
|
+import 'package:photos/core/cache/thumbnail_cache.dart';
|
|
|
import 'package:photos/core/cache/video_cache_manager.dart';
|
|
|
import 'package:photos/core/configuration.dart';
|
|
|
import 'package:photos/core/constants.dart';
|
|
@@ -296,6 +297,7 @@ Future<void> clearCache(ente.File file) async {
|
|
|
if (cachedThumbnail.existsSync()) {
|
|
|
await cachedThumbnail.delete();
|
|
|
}
|
|
|
+ ThumbnailLruCache.clearCache(file);
|
|
|
}
|
|
|
|
|
|
class _LivePhoto {
|