mirror of
https://github.com/element-hq/synapse.git
synced 2026-09-09 18:15:50 +00:00
When purging room history, send cache replication message for _get_event_cache
As described in https://github.com/element-hq/synapse-rust-apps/issues/157
This commit is contained in:
@@ -401,6 +401,11 @@ class PurgeEventsStore(StateGroupWorkerStore, CacheInvalidationWorkerStore):
|
||||
for event_id, should_delete in event_rows:
|
||||
if should_delete:
|
||||
self.invalidate_get_event_cache_after_txn(txn, event_id)
|
||||
# Send that invalidation to replication so that other workers also invalidate
|
||||
# the event cache.
|
||||
self._send_invalidation_to_replication(
|
||||
txn, "_get_event_cache", (event_id,)
|
||||
)
|
||||
|
||||
logger.info("[purge] done")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user