Open
Description
Expected behavior vs actual behavior
I expected for AMS to allow a column other than updated_at
to be used as a default for naming cache entries, but there is no such configuration option listed in the Cache README or Configuration README.
Steps to reproduce
- Create a model without
updated_at
, instead calling the field something likemodified_at
. - Create an instance of the model, and verify that it was cached.
- Update the instance you created, and verify that no new cache entry was set and no previous entry was expired.
- Fetch the key from the cache, and verify that the values are still the old ones.
Environment
Rails 5.1.0
Redis 3.2.6
AMS 0.10.3
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin16]
Mac OSX Sierra 10.12.2