Skip to content

Commit 756ebad

Browse files
committed
remove superfluous cache invalidations
1 parent f0e2b29 commit 756ebad

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

synapse/storage/databases/main/thread_subscriptions.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,6 @@ def _subscribe_user_to_thread_txn(txn: LoggingTransaction) -> Optional[int]:
165165
values=values,
166166
)
167167

168-
self._invalidate_cache_and_stream(
169-
txn,
170-
self.get_subscription_for_thread,
171-
(user_id, room_id, thread_root_event_id),
172-
)
173-
174168
return stream_id
175169

176170
return await self.db_pool.runInteraction(
@@ -230,12 +224,6 @@ def _unsubscribe_user_from_thread_txn(txn: LoggingTransaction) -> Optional[int]:
230224
},
231225
)
232226

233-
self._invalidate_cache_and_stream(
234-
txn,
235-
self.get_subscription_for_thread,
236-
(user_id, room_id, thread_root_event_id),
237-
)
238-
239227
return stream_id
240228

241229
return await self.db_pool.runInteraction(

0 commit comments

Comments
 (0)