Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset cache on projector reset #776

Merged
merged 2 commits into from
Sep 20, 2023

Conversation

bastianjoel
Copy link
Member

resolves #775

@bastianjoel bastianjoel added this to the 4.1 milestone Sep 20, 2023
Copy link
Member

@ostcar ostcar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, you have to reset the cache AND the hotkeys.

It should not be a problem, if there are old Data in the hotkeys. When the cache is empty, then the hotkeys will be regenerated as soon, as the projection is calculated for the next time. But if the projection is never called after the reset, then the hotkeys will never be cleared. So I think it is better to clear them in the reset call.

Copy link
Member

@ostcar ostcar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not tested it.

@m-schieder m-schieder merged commit e97497e into OpenSlides:main Sep 20, 2023
3 checks passed
@bastianjoel bastianjoel deleted the 775-fix-projector-cache-reset branch September 21, 2023 16:30
peb-adr added a commit that referenced this pull request Oct 18, 2023
* commit '84c1bfc03a8ea54e9a0dec9f431d1d50e110da67':
  Bump github.com/klauspost/compress from 1.17.0 to 1.17.1 (#787)
  Bump github.com/alecthomas/kong from 0.8.0 to 0.8.1 (#785)
  Bump golang from 1.21.1-alpine to 1.21.2-alpine (#784)
  Bump golang.org/x/sys from 0.12.0 to 0.13.0 (#783)
  Bump golang.org/x/sync from 0.3.0 to 0.4.0 (#782)
  Add restrictor for import_preview (#781)
  Fix generic relation keys with fields that only exist on one field (#780)
  Bump leonsteinhaeuser/project-beta-automations from 2.1.0 to 2.2.1 (#778)
  Move profiler to internal route (#770)
  Reset cache on projector reset (#776)
  Bump github.com/klauspost/compress from 1.16.7 to 1.17.0 (#773)
  Bump golang.org/x/sys from 0.11.0 to 0.12.0 (#774)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Projector content not updated after cache reset
3 participants