aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2018-01-12 15:03:32 -0700
committerGitHub <noreply@github.com>2018-01-12 15:03:32 -0700
commitf8afb5168aed810a061d081d3941c9dc9bd633c3 (patch)
tree029539470990dd29e272dea53ff6fe1ed8bc1705 /guides
parentaa0541e686d5e275315670b374b6c379cc67bc33 (diff)
parentd034f488f9c2d694bcad9950df0310ca869956e0 (diff)
downloadrails-f8afb5168aed810a061d081d3941c9dc9bd633c3.tar.gz
rails-f8afb5168aed810a061d081d3941c9dc9bd633c3.tar.bz2
rails-f8afb5168aed810a061d081d3941c9dc9bd633c3.zip
Merge pull request #31651 from eugeneius/use_sha1_digests
Use SHA-1 for non-sensitive digests by default
Diffstat (limited to 'guides')
-rw-r--r--guides/source/caching_with_rails.md6
-rw-r--r--guides/source/configuring.md2
2 files changed, 5 insertions, 3 deletions
diff --git a/guides/source/caching_with_rails.md b/guides/source/caching_with_rails.md
index 780e69c146..cd9f4b4a68 100644
--- a/guides/source/caching_with_rails.md
+++ b/guides/source/caching_with_rails.md
@@ -100,9 +100,9 @@ called key-based expiration.
Cache fragments will also be expired when the view fragment changes (e.g., the
HTML in the view changes). The string of characters at the end of the key is a
-template tree digest. It is an MD5 hash computed based on the contents of the
-view fragment you are caching. If you change the view fragment, the MD5 hash
-will change, expiring the existing file.
+template tree digest. It is a hash digest computed based on the contents of the
+view fragment you are caching. If you change the view fragment, the digest will
+change, expiring the existing file.
TIP: Cache stores like Memcached will automatically delete old cache files.
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index 1668f9e81a..879a1ea89f 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -672,6 +672,8 @@ There are a few configuration options available in Active Support:
* `config.active_support.time_precision` sets the precision of JSON encoded time values. Defaults to `3`.
+* `config.active_support.use_sha1_digests` specifies whether to use SHA-1 instead of MD5 to generate non-sensitive digests, such as the ETag header. Defaults to false.
+
* `ActiveSupport::Logger.silencer` is set to `false` to disable the ability to silence logging in a block. The default is `true`.
* `ActiveSupport::Cache::Store.logger` specifies the logger to use within cache store operations.