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

Commit 654472d

Browse files
committed
Disable ineffective AS cache
This is specifically ineffective in our setup where we have a single AS and thus there is no caching benefit between AS'.
1 parent 54ee471 commit 654472d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

synapse/storage/databases/main/receipts.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,10 @@ def f(txn: LoggingTransaction) -> List[Dict[str, Any]]:
433433
}
434434
return results
435435

436-
@cached(
437-
num_args=2,
438-
)
436+
# Beeper hack: we only have one AS, so no benefit to caching this
437+
# @cached(
438+
# num_args=2,
439+
# )
439440
async def get_linearized_receipts_for_all_rooms(
440441
self, to_key: int, from_key: Optional[int] = None
441442
) -> Dict[str, JsonDict]:

0 commit comments

Comments
 (0)