refactor: Store cached files in tmp directory so OS will clear file cache from time to time
This commit is contained in:
parent
30d6435b96
commit
df3f6dd2c1
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue