Skip to content

Caching Defaults Not Configurable #2015

Open
@stephendolan

Description

@stephendolan

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

  1. Create a model without updated_at, instead calling the field something like modified_at.
  2. Create an instance of the model, and verify that it was cached.
  3. Update the instance you created, and verify that no new cache entry was set and no previous entry was expired.
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions