Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Up get_latest_event_ids_in_room cache
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Feb 1, 2017
1 parent 06567ec commit 5deaf9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/storage/event_federation.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def get_latest_event_ids_and_hashes_in_room(self, room_id):
room_id,
)

@cached()
@cached(max_entries=5000, iterable=True)
def get_latest_event_ids_in_room(self, room_id):
return self._simple_select_onecol(
table="event_forward_extremities",
Expand Down

0 comments on commit 5deaf9e

Please sign in to comment.