element-hq / element-hq/element-android
Regularly clearing the cache
- Dominant language
- Kotlin
- Stars
- 3.7k
- Forks
- 917
- Avg merge
- 8d 20h
- Merged PRs (30d)
- 1
Description
Currently, there are quite some problems occurring more or less often, which (can) get fixed by clearing the cache. As far as I know, clearing the cache has no drawbacks, except for clearing poll votes (#1019) – which is not quite important, as polls are just partly implemented by RiotX, and anywhere else not at all.
Therefore, I’d like to propose regular application state sanitization by clearing the cache maybe once a day and at every application restart. (I don’t know if it’s possible to detect when the application gets quasi-killed – i.e. swiping in the application overview – or if just full terminations can be handled. At least the “once-a-day and at-every-full-restart” algorithm should be easy to implement, I guess.)
This way I expect more problems to get self-repaired, so that users gain a better user experience.
In developer mode this should get deactivated, to gain a fail-early-and-obvious behaviour.
Contributor guide
Assessment
This issue has not been assessed yet.