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

Refactor clearing cache on handler #45260

Conversation

eileencodes
Copy link
Member

This method was left over from when we had 2 kinds of connection
management. Now that we no longer have multiple handlers and there can
only be one, there's no reason to have this refactored to a separate
method.

If we end up reimplementing #40622 the connection specification name can
be passed to clear_query_caches_for_current_thread instead. However
I'm still concerned that switching from clearing all connections to only
clearing per connection name will break existing applications that are
dependent on this behavior.

This method was left over from when we had 2 kinds of connection
management. Now that we no longer have multiple handlers and there can
only be one, there's no reason to have this refactored to a separate
method.

If we end up reimplementing rails#40622 the connection specification name can
be passed to `clear_query_caches_for_current_thread` instead. However
I'm still concerned that switching from clearing all connections to only
clearing per connection name will break existing applications that are
dependent on this behavior.
@eileencodes eileencodes merged commit 18d8e1b into rails:main Jun 3, 2022
@eileencodes eileencodes deleted the refactor-clear-query-cache-on-handler-method branch June 3, 2022 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant