summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--synapse/storage/_base.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py
index e53630a689..2552a74f85 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -100,8 +100,7 @@ def cached(max_entries=1000, num_args=1):
             cache_counter.inc_misses(name)
             ret = yield orig(self, *keyargs)
 
-            prefill_args = keyargs + (ret,)
-            prefill(*prefill_args)
+            prefill(*keyargs + (ret,))
 
             defer.returnValue(ret)