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:48:26 -0300 |
commit | 9cce1ea2fd02e8050350c4657e7cc7f1902b8694 (patch) | |
tree | e0df45bbb185069b959ed59976475aa580cb4e6c /guides | |
parent | 3142bf51ee7afff880b4eb837434dae874b47491 (diff) | |
download | rails-9cce1ea2fd02e8050350c4657e7cc7f1902b8694.tar.gz rails-9cce1ea2fd02e8050350c4657e7cc7f1902b8694.tar.bz2 rails-9cce1ea2fd02e8050350c4657e7cc7f1902b8694.zip |
Allow users to choose the timestamp format in the cache key
This can be done using the class attribute cache_timestamp_format
Conflicts:
railties/guides/source/configuring.textile
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/configuring.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md index 446f767f0c..a8e33a2956 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -276,6 +276,8 @@ config.middleware.delete ActionDispatch::BestStandardsSupport * `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. |