Skip to content

[Backport stable-16.10.x] XWIKI-22665: Required rights should be cached #3699

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

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

github-actions[bot]
Copy link

Backport d9830e7 from #3695.

* Introduce a new `SimpleDocumentCache` for caching values associated with document references.
* Use the cache in the `DocumentRequiredRightsManager`.
* Return static instances in `DocumentRequiredRightsReader` to reduce the memory usage of the cache.
* Remove `DocumentRequiredRightsManager` from the page test component list and instead add a mock in `MockitoOldcore`.
* Move `DocumentRequiredRightsManager` to the authorization bridge as it fits better there and with the mock implementation in `MockitoOldcore` there is no need to have it available for tests.

(cherry picked from commit d9830e7)
@michitux michitux merged commit d872128 into stable-16.10.x Nov 29, 2024
@michitux michitux deleted the backport-3695-to-stable-16.10.x branch November 29, 2024 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant