HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/default/doc/activerecord-6.1.4.1/ri/ActiveRecord/Relation/cache_version-i.ri
U:RDoc::AnyMethod[iI"cache_version:ETI")ActiveRecord::Relation#cache_version;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph;	[
I"RReturns a cache version that can be used together with the cache key to form ;TI"Xa recyclable caching scheme. The cache version is built with the number of records ;TI"Ymatching the query, and the timestamp of the last updated record. When a new record ;TI"Ucomes to match the query, or any of the existing records is updated or deleted, ;TI"the cache version changes.;To:RDoc::Markup::BlankLineo;
;	[I"NIf the collection is loaded, the method will iterate through the records ;TI"Mto generate the timestamp, otherwise it will trigger one SQL query like:;T@o:RDoc::Markup::Verbatim;	[I"iSELECT COUNT(*), MAX("products"."updated_at") FROM "products" WHERE (name like '%Cosmic Encounter%');T:@format0:
@fileI""lib/active_record/relation.rb;T:0@omit_headings_from_table_of_contents_below000[I"%(timestamp_column = :updated_at);T@FI"
Relation;TcRDoc::NormalClass00