method

compute_cache_key

compute_cache_key(timestamp_column = :updated_at)
private

No documentation available.

# File activerecord/lib/active_record/relation.rb, line 325
    def compute_cache_key(timestamp_column = :updated_at) # :nodoc:
      query_signature = ActiveSupport::Digest.hexdigest(to_sql)
      key = "#{klass.model_name.cache_key}/query-#{query_signature}"

      if collection_cache_versioning
        key
      else
        "#{key}-#{compute_cache_version(timestamp_column)}"
      end
    end