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

Add method to clear DB cache #4

Closed
wants to merge 1 commit into from

Conversation

nikhilmat
Copy link

This relates to github/gh-ost#465 and a PR I'm about to submit to allow gh-ost to be consumed as a library.

When using gh-ost in a long running process, the DB connections get closed but due to the caching here, subsequent migrations fail because the connection has already been closed. This PR exposes a function that can be used to reset the cache, allowing new connections to be established when necessary. This method would typically be called as a part of teardown from the consumer

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