summary refs log tree commit diff
path: root/develop/print.html
diff options
context:
space:
mode:
authorH-Shay <H-Shay@users.noreply.github.com>2022-02-11 19:05:49 +0000
committerH-Shay <H-Shay@users.noreply.github.com>2022-02-11 19:05:49 +0000
commit433b5c9dff70248c92505be13f98498406a881d9 (patch)
tree4390740c710855fe045d6c87de11696d8b656cbf /develop/print.html
parentdeploy: 0171fa5226a6aa808d9965dab20f22f9794810d9 (diff)
downloadsynapse-433b5c9dff70248c92505be13f98498406a881d9.tar.xz
deploy: b2b971f28a19c7fb31df79db29060ae72ba06e6b
Diffstat (limited to 'develop/print.html')
-rw-r--r--develop/print.html18
1 files changed, 14 insertions, 4 deletions
diff --git a/develop/print.html b/develop/print.html
index abcbbc294b..11bdfac883 100644
--- a/develop/print.html
+++ b/develop/print.html
@@ -1654,6 +1654,11 @@ feature has been stabilised and moved from:</p>
 <p>to:</p>
 <p><code>/_matrix/client/v1/register/m.login.registration_token/validity</code></p>
 <p>Please update any relevant reverse proxy or firewall configurations appropriately.</p>
+<h2 id="time-based-cache-expiry-is-now-enabled-by-default"><a class="header" href="#time-based-cache-expiry-is-now-enabled-by-default">Time-based cache expiry is now enabled by default</a></h2>
+<p>Formerly, entries in the cache were not evicted regardless of whether they were accessed after storing.
+This behavior has now changed. By default entries in the cache are now evicted after 30m of not being accessed. 
+To change the default behavior, go to the <code>caches</code> section of the config and change the <code>expire_caches</code> and 
+<code>cache_entry_ttl</code> flags as necessary. Please note that these flags replace the <code>expiry_time</code> flag in the config.</p>
 <h2 id="deprecation-of-capability-orgmatrixmsc3283"><a class="header" href="#deprecation-of-capability-orgmatrixmsc3283">Deprecation of <code>capability</code> <code>org.matrix.msc3283.*</code></a></h2>
 <p>The <code>capabilities</code> of MSC3283 from the REST API <code>/_matrix/client/r0/capabilities</code>
 becomes stable.</p>
@@ -3657,11 +3662,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