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

Fix missing cache invalidation in application service code #14670

Merged
merged 1 commit into from
Dec 12, 2022

Commits on Dec 12, 2022

  1. Fix missing cache invalidation in application service code

    #11915 introduced the `@cached` `is_interested_in_room` method in
    Synapse 1.55.0, which depends upon `get_aliases_for_room`. Add a missing
    cache invalidation callback so that the `is_interested_in_room` cache is
    invalidated when `get_aliases_for_room` is invalidated.
    
    #13787 made `get_rooms_for_user` `@cached`. Add a missing cache
    invalidation callback so that the `is_interested_in_presence` cache is
    invalidated when `get_rooms_for_user` is invalidated.
    
    Signed-off-by: Sean Quah <[email protected]>
    Sean Quah committed Dec 12, 2022
    Configuration menu
    Copy the full SHA
    72ee9fa View commit details
    Browse the repository at this point in the history