mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-22 04:54:15 -04:00
Don't update event cache hit ratio from get_joined_users
Otherwise the hit ration of plain get_events gets completely skewed by calls to get_joined_users* functions.
This commit is contained in:
parent
dcabef952c
commit
ffad4fe35b
3 changed files with 21 additions and 5 deletions
|
@ -421,9 +421,13 @@ class RoomMemberStore(SQLBaseStore):
|
|||
# We check if we have any of the member event ids in the event cache
|
||||
# before we ask the DB
|
||||
|
||||
# We don't update the event cache hit ratio as it completely throws off
|
||||
# the hit ratio counts. After all, we don't populate the cache if we
|
||||
# miss it here
|
||||
event_map = self._get_events_from_cache(
|
||||
member_event_ids,
|
||||
allow_rejected=False,
|
||||
update_metrics=False,
|
||||
)
|
||||
|
||||
missing_member_event_ids = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue