mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 09:14:14 -04:00
Indirect invalidations of _get_event_cache via a helper method to keep all uses of the cache lexically within one .py file
This commit is contained in:
parent
9ba6487b3f
commit
033a517feb
2 changed files with 5 additions and 2 deletions
|
@ -732,6 +732,9 @@ class SQLBaseStore(object):
|
|||
|
||||
return [e for e in events if e]
|
||||
|
||||
def _invalidate_get_event_cache(self, event_id):
|
||||
self._get_event_cache.pop(event_id)
|
||||
|
||||
def _get_event_txn(self, txn, event_id, check_redacted=True,
|
||||
get_prev_content=False, allow_rejected=False):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue