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

Ensure cache_key is invalidated when updating translations #104

Merged
merged 4 commits into from
Sep 30, 2017

Conversation

pwim
Copy link
Collaborator

@pwim pwim commented Sep 30, 2017

For the table and key_value backends, this means the model itself is touched when updating a translation.

Fixes #101. Closes #103.

For the table and key_value backends, this means the model itself is
touched when updating a translation.
MySQL's default precision isn't enough to change the updated_at
otherwise.
Because we're touching when attributes are changed, this sometimes means
these hashes will include updated_at (it appears to vary based on DB and
Rails version).
Right now, we're only using them for testing with activerecord. If we
need to use them with sequel, we can add as an explicit dependency.
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.

2 participants