Make config follow the guidelines

pull/6391/head
Andrew Morgan 2020-05-01 15:11:14 +01:00
parent 48709a9b22
commit 9e3a9ba4f5
2 changed files with 29 additions and 24 deletions

View File

@ -1975,16 +1975,19 @@ opentracing:
# false
# Cache configuration
#
# 'global_factor' controls the global cache factor. This overrides the
# "SYNAPSE_CACHE_FACTOR" environment variable.
#
# 'per_cache_factors' is a dictionary of cache name to cache factor for that
# individual cache.
#
#caches:
# global_factor: 0.5
# per_cache_factors:
# get_users_who_share_room_with_user: 2
## Cache Configuration ##
# Caching can be configured through the following options.
#
caches:
# Controls the global cache factor. This overrides the "SYNAPSE_CACHE_FACTOR"
# environment variable.
#
# global_factor: 0.5
# A dictionary of cache name to cache factor for that
# individual cache.
#
# per_cache_factors:
# get_users_who_share_room_with_user: 2

View File

@ -70,19 +70,21 @@ class CacheConfig(Config):
def generate_config_section(self, **kwargs):
return """\
# Cache configuration
#
# 'global_factor' controls the global cache factor. This overrides the
# "SYNAPSE_CACHE_FACTOR" environment variable.
#
# 'per_cache_factors' is a dictionary of cache name to cache factor for that
# individual cache.
#
#caches:
# global_factor: 0.5
# per_cache_factors:
# get_users_who_share_room_with_user: 2
## Cache Configuration ##
# Caching can be configured through the following options.
#
caches:
# Controls the global cache factor. This overrides the "SYNAPSE_CACHE_FACTOR"
# environment variable.
#
# global_factor: 0.5
# A dictionary of cache name to cache factor for that
# individual cache.
#
# per_cache_factors:
# get_users_who_share_room_with_user: 2
"""
def read_config(self, config, **kwargs):