diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-12-10 16:22:30 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-12-10 17:43:26 -0300 |
commit | b097652ef67142b7273b17dcfeba1710a5b5cadf (patch) | |
tree | 1ab4244ce0261c5da4e8c249787450c679c46961 /railties | |
parent | 660882bda42ffacc602758631c2a2e6ba09c1ee1 (diff) | |
download | rails-b097652ef67142b7273b17dcfeba1710a5b5cadf.tar.gz rails-b097652ef67142b7273b17dcfeba1710a5b5cadf.tar.bz2 rails-b097652ef67142b7273b17dcfeba1710a5b5cadf.zip |
Allow users to choose the timestamp format in the cache key
This can be done using the class attribute cache_timestamp_format
Closes #8195
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/configuring.textile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile index 3466e1c3f4..f5b39dd4ac 100644 --- a/railties/guides/source/configuring.textile +++ b/railties/guides/source/configuring.textile @@ -277,6 +277,8 @@ h4. Configuring Active Record * +config.active_record.auto_explain_threshold_in_seconds+ configures the threshold for automatic EXPLAINs (+nil+ disables this feature). Queries exceeding the threshold get their query plan logged. Default is 0.5 in development mode. +* +config.active_record.cache_timestamp_format+ controls the format of the timestamp value in the cache key. Default is +:number+. + The MySQL adapter adds one additional configuration option: * +ActiveRecord::ConnectionAdapters::MysqlAdapter.emulate_booleans+ controls whether Active Record will consider all +tinyint(1)+ columns in a MySQL database to be booleans and is true by default. |