Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Feature Request: Make ActiveRecord::Base#cache_key to accept timestamp column name(s) as argument and generate cache key #14347

Closed
PikachuEXE opened this Issue · 2 comments

2 participants

@PikachuEXE

Example:

Post.cache_key #=> posts/1-20140301093012
Post.cache_key(:created_at) #=> posts/1-20140216071232
Post.cache_key(:comments_update_at, :subscriptions_updated_at) #=> posts/1-20140228091114 (The latest of the two columns)

Would be great to add column type checking as well

@arunagw
Collaborator

Hey @PikachuEXE Please send feature request for the Rails core mailing list.
If it's a bug then we can reopen this.

Thanks.

@arunagw arunagw closed this
@PikachuEXE

Oops forgot that sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.