Skip to content

Commit 4d027ec

Browse files
committed
doc: add a changelog entry for the persistent storage of the event cache
1 parent 3cd64ac commit 4d027ec

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

crates/matrix-sdk/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ All notable changes to this project will be documented in this file.
1313
- `Room::relations()` is a new method to list all the events related to another event
1414
("relations"), with additional filters for relation type or relation type + event type.
1515
([#4972](https://github.com/matrix-org/matrix-rust-sdk/pull/4972))
16+
- The `EventCache`'s persistent storage has been enabled by default. This means that all the events
17+
received by sync or back-paginations will be stored, in memory or on disk, by default, as soon as
18+
`EventCache::subscribe()` has been called (which happens automatically if you're using the
19+
`matrix_sdk_ui::Timeline`). This offers offline access and super quick back-paginations (when the
20+
cache has been filled) whenever the event cache is enabled. It's also not possible to disable the
21+
persistent storage anymore. Note that by default, the event cache store uses an in-memory store,
22+
so the events will be lost when the process exits. To store the events on disk, you need to use
23+
the sqlite event cache store.
24+
([#4308](https://github.com/matrix-org/matrix-rust-sdk/pull/4308))
1625

1726
### Bug fixes
1827

0 commit comments

Comments
 (0)