summary refs log tree commit diff
path: root/docs/sample_config.yaml
diff options
context:
space:
mode:
authorShay <hillerys@element.io>2022-02-11 11:05:20 -0800
committerGitHub <noreply@github.com>2022-02-11 11:05:20 -0800
commitb2b971f28a19c7fb31df79db29060ae72ba06e6b (patch)
treec52ac988207d255ce8fdf4ab8cf4d6f607ef1a9f /docs/sample_config.yaml
parentSupport the MSC3715 for `/relations`. (#11941) (diff)
downloadsynapse-b2b971f28a19c7fb31df79db29060ae72ba06e6b.tar.xz
Enable cache time-based expiry by default (#11849)
Diffstat (limited to 'docs/sample_config.yaml')
-rw-r--r--docs/sample_config.yaml13
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