Ho Kuen Leung
2014-Mar-11 09:12 UTC
Feature Request: Make ActiveRecord::Base#cache_key to accept timestamp column name(s) as argument and generate cache key
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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscribe@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at http://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.