mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-16 09:52:17 -04:00
Replace DeferredCache with LruCache where possible (#8563)
Most of these uses don't need a full-blown DeferredCache; LruCache is lighter and more appropriate.
This commit is contained in:
parent
79c1f973ce
commit
97647b33c2
8 changed files with 30 additions and 27 deletions
|
@ -1051,9 +1051,7 @@ class PersistEventsStore:
|
|||
|
||||
def prefill():
|
||||
for cache_entry in to_prefill:
|
||||
self.store._get_event_cache.prefill(
|
||||
(cache_entry[0].event_id,), cache_entry
|
||||
)
|
||||
self.store._get_event_cache.set((cache_entry[0].event_id,), cache_entry)
|
||||
|
||||
txn.call_after(prefill)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue