summary refs log tree commit diff
path: root/synapse/util
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-07-27 16:17:17 +0100
committerRichard van der Hoff <richard@matrix.org>2018-07-27 16:17:17 +0100
commita8cbce0ced662f92ce7576dd44e5fefe98ffae62 (patch)
tree9b6b09a50fa5eeb9e35f754c3b99a5ed44447708 /synapse/util
parentRewrite cache list decorator (diff)
downloadsynapse-a8cbce0ced662f92ce7576dd44e5fefe98ffae62.tar.xz
fix invalidation
Diffstat (limited to 'synapse/util')
-rw-r--r--synapse/util/caches/descriptors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/caches/descriptors.py b/synapse/util/caches/descriptors.py
index 1a8c99d387..861c24809c 100644
--- a/synapse/util/caches/descriptors.py
+++ b/synapse/util/caches/descriptors.py
@@ -528,7 +528,7 @@ class CacheListDescriptor(_CacheDescriptorBase):
                     deferreds_map[arg] = deferred
                     key = arg_to_cache_key(arg)
                     observable = ObservableDeferred(deferred)
-                    cache.set(key, observable)
+                    cache.set(key, observable, callback=invalidate_callback)
 
                 def complete_all(res):
                     # the wrapped function has completed. It returns a