diff options
author | Shay <hillerys@element.io> | 2022-02-11 11:05:20 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 11:05:20 -0800 |
commit | b2b971f28a19c7fb31df79db29060ae72ba06e6b (patch) | |
tree | c52ac988207d255ce8fdf4ab8cf4d6f607ef1a9f /docs/sample_config.yaml | |
parent | Support the MSC3715 for `/relations`. (#11941) (diff) | |
download | synapse-b2b971f28a19c7fb31df79db29060ae72ba06e6b.tar.xz |
Enable cache time-based expiry by default (#11849)
Diffstat (limited to 'docs/sample_config.yaml')
-rw-r--r-- | docs/sample_config.yaml | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/docs/sample_config.yaml b/docs/sample_config.yaml index 946cd281d2..d2bb3d4208 100644 --- a/docs/sample_config.yaml +++ b/docs/sample_config.yaml @@ -751,11 +751,16 @@ caches: per_cache_factors: #get_users_who_share_room_with_user: 2.0 - # Controls how long an entry can be in a cache without having been - # accessed before being evicted. Defaults to None, which means - # entries are never evicted based on time. + # Controls whether cache entries are evicted after a specified time + # period. Defaults to true. Uncomment to disable this feature. # - #expiry_time: 30m + #expire_caches: false + + # If expire_caches is enabled, this flag controls how long an entry can + # be in a cache without having been accessed before being evicted. + # Defaults to 30m. Uncomment to set a different time to live for cache entries. + # + #cache_entry_ttl: 30m # Controls how long the results of a /sync request are cached for after # a successful response is returned. A higher duration can help clients with |