Add automatic purge after all users forget a room (#15488)

Also add restore of purge/shutdown rooms after a synapse restart.

Co-authored-by:  Eric Eastwood <erice@matrix.org>
Co-authored-by: Erik Johnston <erikj@matrix.org>
This commit is contained in:
Mathieu Velten
2023-09-15 15:37:44 +02:00
committed by GitHub
parent 2a0f86f88f
commit dd44ee00b6
13 changed files with 544 additions and 452 deletions

View File

@@ -936,6 +936,17 @@ Example configuration:
redaction_retention_period: 28d
```
---
### `forgotten_room_retention_period`
How long to keep locally forgotten rooms before purging them from the DB.
Defaults to `null`, meaning it's disabled.
Example configuration:
```yaml
forgotten_room_retention_period: 28d
```
---
### `user_ips_max_age`
How long to track users' last seen time and IPs in the database.