Skip to content

loadCache image set last accessed datetime(used to clear cache) #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.4.2

* loadCache image set last accessed datetime(used to clear cache)

## 3.4.1

* clearMemoryCacheWhenDispose is not working with imageCacheName property, obtainCacheStatus method should be overrided.(#44)
Expand Down
2 changes: 2 additions & 0 deletions lib/src/_network_image_io.dart
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,11 @@ class ExtendedNetworkImageProvider
cacheFlie.deleteSync(recursive: true);
} else {
data = await cacheFlie.readAsBytes();
cacheFlie.setLastAccessed(DateTime.now());
}
} else {
data = await cacheFlie.readAsBytes();
cacheFlie.setLastAccessed(DateTime.now());
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: extended_image_library
description: package library for extended_image, extended_text and extended_text_field, provide common base class.
version: 3.4.1
version: 3.4.2
homepage: https://github.com/fluttercandies/extended_image_library

environment:
Expand Down