Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Cache: Enable compression by default for values > 1kB #31147
Compression has long been available, but opt-in and at a 16kB threshold.
Compression dramatically reduces Memcached/Redis mem usage, which means
To disable compression, pass
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.
Yup, for months now. Great results alongside cache key recycling. Together, these are crucial for a well-behaved Redis cache. Clear highlights: large drop in cache network bandwidth; large increase in # of active cache entries. We will be sharing more along with Rails 5.2 release.