Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Document that media purging will be done by the media worker
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed May 16, 2022
1 parent f7f556e commit fb04e7a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docs/sample_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1045,12 +1045,16 @@ media_store_path: "DATADIR/media_store"

# Configure media retention settings. Media will be purged if it
# has not been accessed in at least this amount of time. If the
# media has never been access, the media's creation time is used
# media has never been accessed, the media's creation time is used
# instead. Both thumbnails and the original media will be removed.
#
# Media is 'accessed' when loaded in a room in a client, or
# otherwise downloaded by a local or remote user.
#
# Purging the media will be the carried out by the media worker
# (whichever worker has the 'enable_media_repo' homeserver config
# option enabled). This may be the main process.
#
media_retention:
# Whether media retention settings should apply. Defaults to
# false.
Expand Down
6 changes: 5 additions & 1 deletion synapse/config/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,16 @@ def generate_config_section(self, data_dir_path: str, **kwargs: Any) -> str:
# Configure media retention settings. Media will be purged if it
# has not been accessed in at least this amount of time. If the
# media has never been access, the media's creation time is used
# media has never been accessed, the media's creation time is used
# instead. Both thumbnails and the original media will be removed.
#
# Media is 'accessed' when loaded in a room in a client, or
# otherwise downloaded by a local or remote user.
#
# Purging the media will be the carried out by the media worker
# (whichever worker has the 'enable_media_repo' homeserver config
# option enabled). This may be the main process.
#
media_retention:
# Whether media retention settings should apply. Defaults to
# false.
Expand Down

0 comments on commit fb04e7a

Please sign in to comment.