# File activerecord/lib/active_record/integration.rb, line 48
def cache_key
case
when new_record?
"#{self.class.model_name.cache_key}/new"
when timestamp = max_updated_column_timestamp
timestamp = timestamp.utc.to_s(cache_timestamp_format)
"#{self.class.model_name.cache_key}/#{id}-#{timestamp}"
else
"#{self.class.model_name.cache_key}/#{id}"
end
end