Skip to content

Ensure cache_key is invalidated when updating translations - #104

Merged
shioyama merged 4 commits into
masterfrom
cache-key
Sep 30, 2017
Merged

Ensure cache_key is invalidated when updating translations#104
shioyama merged 4 commits into
masterfrom
cache-key

Conversation

@pwim

@pwim pwim commented Sep 30, 2017

Copy link
Copy Markdown
Collaborator

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