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

Fix have_seen_event cache not being invalidated #13863

Commits on Sep 21, 2022

  1. Fix have_seen_event cache not being invalidated

    Fix #13856
    
    `_invalidate_caches_for_event` doesn't run in monolith mode which
    means we never even tried to clear the `have_seen_event` and other
    caches. And even in worker mode, it only runs on the workers, not
    the master (AFAICT).
    
    Additionally there is bug with the key being wrong so
    `_invalidate_caches_for_event` never invalidates the
    `have_seen_event` cache even when it does run.
    
    Wrong:
    ```py
    self.have_seen_event.invalidate((room_id, event_id))
    ```
    
    Correct:
    ```py
    self.have_seen_event.invalidate(((room_id, event_id),))
    ```
    MadLittleMods committed Sep 21, 2022
    Configuration menu
    Copy the full SHA
    a847a35 View commit details
    Browse the repository at this point in the history
  2. Add changelog

    MadLittleMods committed Sep 21, 2022
    Configuration menu
    Copy the full SHA
    f6393db View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2022

  1. Assert is not None

    MadLittleMods committed Sep 22, 2022
    Configuration menu
    Copy the full SHA
    f2a5c70 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1054f91 View commit details
    Browse the repository at this point in the history
  3. Invalidate cache like #13796

    Copying what #13796
    is doing
    MadLittleMods committed Sep 22, 2022
    Configuration menu
    Copy the full SHA
    2162ab5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0cdc7bf View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2022

  1. Add test description

    MadLittleMods committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    5b9b645 View commit details
    Browse the repository at this point in the history
  2. Better changelog

    MadLittleMods committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    9fb750d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4fa8f05 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b9be6c5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f8dc17b View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2022

  1. Configuration menu
    Copy the full SHA
    af93b3c View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2022

  1. Configuration menu
    Copy the full SHA
    0d0f54e View commit details
    Browse the repository at this point in the history