element-hq / element-meta

Shared/meta documentation and project artefacts for Element clients
70 stars 12 forks source link

Room history local cache size configuration for better offline access to old messages history #1268

Open MurzNN opened 5 years ago

MurzNN commented 5 years ago

Sometimes I have no internet access, but have time to read some rooms history, that already been received on this device.

At now Riot already cache (store) in local device storage some amount of events for rooms, so I can read some rooms without internet access. But not all rooms are cached and not so much history I see for reading.

Can you please describe current caching rules in Riot-web?

And can you make configuration value, that allow to configure local messages (events) cache size, and other cache settings?

G2G2G2G commented 5 years ago

Currently Riot re-downloads every piece of media in different channel/rooms every single time you switch. For example: Upload a video to 2 rooms click between the rooms as many times as you want, it'll continually download the video again & again using gigabytes of data just from clicking between 2 channels chatting with people.

Riot has terrible cache currently, I think that will be fixed with your suggestion and I think it is something that is very important.