mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-19 17:56:19 +03:00
Invalidate get_earliest_token_for_stats
cache as required.
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
This commit is contained in:
parent
07c267c516
commit
44d3c2e80b
1 changed files with 1 additions and 0 deletions
|
@ -433,6 +433,7 @@ class StatsStore(StateDeltasStore):
|
|||
elif complete_with_stream_id is not None:
|
||||
absolute_fields = absolute_fields.copy()
|
||||
absolute_fields["completed_delta_stream_id"] = complete_with_stream_id
|
||||
self.get_earliest_token_for_stats.invalidate(stats_type, stats_id)
|
||||
|
||||
# first upsert the `_current` table
|
||||
self._upsert_with_additive_relatives_txn(
|
||||
|
|
Loading…
Reference in a new issue