Skip to content

Memoize current user to prevent queries #21

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

Conversation

matheussilvasantos
Copy link

@matheussilvasantos matheussilvasantos commented Dec 29, 2024

Memoization was removed with the fix for session replay attack.

In development, it can be seen in Rails logs that the database is queried multiple times. However, in tests, we need ActiveRecord::Base.uncached to reproduce the multiple queries.

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