Move event_cache_size to CacheConfig
parent
fe890508cc
commit
ae6070bc12
synapse/config
|
@ -634,10 +634,6 @@ database:
|
||||||
args:
|
args:
|
||||||
database: DATADIR/homeserver.db
|
database: DATADIR/homeserver.db
|
||||||
|
|
||||||
# Number of events to cache in memory.
|
|
||||||
#
|
|
||||||
#event_cache_size: 10K
|
|
||||||
|
|
||||||
|
|
||||||
## Logging ##
|
## Logging ##
|
||||||
|
|
||||||
|
@ -1979,6 +1975,12 @@ opentracing:
|
||||||
|
|
||||||
# Caching can be configured through the following options.
|
# Caching can be configured through the following options.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# The number of events to cache in memory. Not affected by the
|
||||||
|
# caches.global_factor.
|
||||||
|
#
|
||||||
|
#event_cache_size: 10K
|
||||||
|
|
||||||
caches:
|
caches:
|
||||||
# Controls the global cache factor. This can be overridden by the
|
# Controls the global cache factor. This can be overridden by the
|
||||||
# "SYNAPSE_CACHE_FACTOR" environment variable.
|
# "SYNAPSE_CACHE_FACTOR" environment variable.
|
||||||
|
|
|
@ -74,6 +74,12 @@ class CacheConfig(Config):
|
||||||
|
|
||||||
# Caching can be configured through the following options.
|
# Caching can be configured through the following options.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# The number of events to cache in memory. Not affected by the
|
||||||
|
# caches.global_factor.
|
||||||
|
#
|
||||||
|
#event_cache_size: 10K
|
||||||
|
|
||||||
caches:
|
caches:
|
||||||
# Controls the global cache factor. This can be overridden by the
|
# Controls the global cache factor. This can be overridden by the
|
||||||
# "SYNAPSE_CACHE_FACTOR" environment variable.
|
# "SYNAPSE_CACHE_FACTOR" environment variable.
|
||||||
|
|
|
@ -68,10 +68,6 @@ database:
|
||||||
name: sqlite3
|
name: sqlite3
|
||||||
args:
|
args:
|
||||||
database: %(database_path)s
|
database: %(database_path)s
|
||||||
|
|
||||||
# Number of events to cache in memory.
|
|
||||||
#
|
|
||||||
#event_cache_size: 10K
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue