mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-06 08:06:47 +00:00
[ADR] Cleaning up cache strategy
This commit is contained in:
1 parent
ff9bc6d7e5
commit
ae93de2a5f
1 file changed
+22
@@ -0,0 +1,22 @@
|
||||
# 5. Cleaning up cache strategy
|
||||
|
||||
Date: 2022-04-27
|
||||
|
||||
## Status
|
||||
|
||||
Accepted
|
||||
|
||||
## Context
|
||||
|
||||
- Cleaning up the emails in cache which email have `receivedAt` was over 30 days from today
|
||||
- Cleaning up was triggered when user START the app on the first time of each day
|
||||
|
||||
## Decision
|
||||
|
||||
- Cleaning up the emails in cache which email have `receivedAt` was over 10 days from today
|
||||
- Cleaning up was triggered when every time user START the app
|
||||
|
||||
## Consequences
|
||||
|
||||
- Cache is clean up more usually
|
||||
- Reduce the device's storage for the cache, may useful for user who have too many mails
|
||||
Reference in new issue
Block a user