summary refs log tree commit diff
path: root/changelog.d
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2021-06-14 10:26:09 +0100
committerGitHub <noreply@github.com>2021-06-14 10:26:09 +0100
commitd7808a2dde8a924d86791c71b864e7ab24b8d967 (patch)
treeccfd22432e92c4dcdce7a1e9eecf6319aa003aca /changelog.d
parentNotes on boolean columns in database schemas (#10164) (diff)
downloadsynapse-d7808a2dde8a924d86791c71b864e7ab24b8d967.tar.xz
Extend `ResponseCache` to pass a context object into the callback (#10157)
This is the first of two PRs which seek to address #8518. This first PR lays the groundwork by extending ResponseCache; a second PR (#10158) will update the SyncHandler to actually use it, and fix the bug.

The idea here is that we allow the callback given to ResponseCache.wrap to decide whether its result should be cached or not. We do that by (optionally) passing a ResponseCacheContext into it, which it can modify.
Diffstat (limited to 'changelog.d')
-rw-r--r--changelog.d/10157.misc1
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/10157.misc b/changelog.d/10157.misc
new file mode 100644
index 0000000000..6c1d0e6e59
--- /dev/null
+++ b/changelog.d/10157.misc
@@ -0,0 +1 @@
+Extend `ResponseCache` to pass a context object into the callback.