refactor: Store cached files in tmp directory so OS will clear file cache from time to time

fluffychat-flutterwebauto2
Krille 3 years ago
parent 30d6435b96
commit df3f6dd2c1

@ -113,7 +113,7 @@ class FlutterHiveCollectionsDatabase extends HiveCollectionsDatabase {
Future<String> _getFileStoreDirectory() async {
try {
try {
return (await getApplicationSupportDirectory()).path;
return (await getTemporaryDirectory()).path;
} catch (_) {
return (await getApplicationDocumentsDirectory()).path;
}

Loading…
Cancel
Save