diff options
author | Jeremy Daer <jeremydaer@gmail.com> | 2017-11-13 19:16:53 -0700 |
---|---|---|
committer | Jeremy Daer <jeremydaer@gmail.com> | 2017-11-13 22:02:45 -0700 |
commit | ed100166874fb4a542c5aaba933a4cca5ed72269 (patch) | |
tree | 2ff1d0fc88cbf9e10dc85c873765b4e6d06fa7e8 /activesupport/CHANGELOG.md | |
parent | b6d5e46311d7ea59539c1f45c6ffb269eeb23912 (diff) | |
download | rails-ed100166874fb4a542c5aaba933a4cca5ed72269.tar.gz rails-ed100166874fb4a542c5aaba933a4cca5ed72269.tar.bz2 rails-ed100166874fb4a542c5aaba933a4cca5ed72269.zip |
Cache: Enable compression by default for values > 1kB.
Compression has long been available, but opt-in and at a 16kB threshold.
It wasn't enabled by default due to CPU cost. Today it's cheap and
typical cache data is eminently compressible, such as HTML or JSON
fragments.
Compression dramatically reduces Memcached/Redis mem usage, which means
the same cache servers can store more data, which means higher hit
rates.
To disable compression, pass `compress: false` to the initializer.
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r-- | activesupport/CHANGELOG.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md index d8059c860c..24c7f362e9 100644 --- a/activesupport/CHANGELOG.md +++ b/activesupport/CHANGELOG.md @@ -36,6 +36,18 @@ *Jeremy Daer* +* Cache: Enable compression by default for values > 1kB. + + Compression has long been available, but opt-in and at a 16kB threshold. + It wasn't enabled by default due to CPU cost. Today it's cheap and typical + cache data is eminently compressible, such as HTML or JSON fragments. + Compression dramatically reduces Memcached/Redis mem usage, which means + the same cache servers can store more data, which means higher hit rates. + + To disable compression, pass `compress: false` to the initializer. + + *Jeremy Daer* + * Allow `Range#include?` on TWZ ranges In #11474 we prevented TWZ ranges being iterated over which matched |