Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Ensure that we do not cache empty sync responses after a timeout (#10158) | Richard van der Hoff | 2021-06-17 | 1 | -1/+0 |
| | | | Fixes #8518 by telling the ResponseCache not to cache the /sync response if the next_batch param is the same as the since token. | ||||
* | Extend `ResponseCache` to pass a context object into the callback (#10157) | Richard van der Hoff | 2021-06-14 | 1 | -0/+1 |
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. |