diff options
author | Erik Johnston <erik@matrix.org> | 2015-04-09 13:13:26 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-04-09 13:13:26 +0100 |
commit | 8bf285e08266f3035ce27ec3455ad9effef53e0e (patch) | |
tree | d1be74830e577cc13c1211e2ae3a622f2f0d28ba /synapse/storage/events.py | |
parent | Stream ordering and out of order insertions. (diff) | |
parent | Merge pull request #120 from matrix-org/bugs/SYN-339 (diff) | |
download | synapse-8bf285e08266f3035ce27ec3455ad9effef53e0e.tar.xz |
Merge branch 'develop' of github.com:matrix-org/synapse into mysql
Diffstat (limited to 'synapse/storage/events.py')
-rw-r--r-- | synapse/storage/events.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py index f066484c7e..a2e87c27ce 100644 --- a/synapse/storage/events.py +++ b/synapse/storage/events.py @@ -93,7 +93,7 @@ class EventsStore(SQLBaseStore): current_state=None): # Remove the any existing cache entries for the event_id - self._get_event_cache.pop(event.event_id) + self._invalidate_get_event_cache(event.event_id) if stream_ordering is None: with self._stream_id_gen.get_next_txn(txn) as stream_ordering: @@ -356,7 +356,7 @@ class EventsStore(SQLBaseStore): def _store_redaction(self, txn, event): # invalidate the cache for the redacted event - self._get_event_cache.pop(event.redacts) + self._invalidate_get_event_cache(event.redacts) txn.execute( "INSERT INTO redactions (event_id, redacts) VALUES (?,?)", (event.event_id, event.redacts) |