The Wire · Showcase
RAILS FIXES SILENT CACHE MUTATION BUG BEFORE IT BITES PRODUCTION
By RepoJournal · Filed · About Rails
A destructive bug in Cache::Store#delete_multi that silently mutates caller arrays and breaks subsequent calls just got merged into Rails.
The cache bug [1] was shipping dangerous behavior: delete_multi normalized keys by mutating the names array passed in, unlike every other cache method that builds new collections. Call it twice with the same array and the second call would double-namespace keys and delete nothing. That's the kind of silent failure that haunts production for weeks. The fix [2] landed this morning and stops the mutation cold. On the testing front, Type::Date#cast coverage [3] expanded to handle values responding to #to_date, non-ISO parseable strings, calendar-invalid dates, and uncasted values that don't fit existing branches. The rails/rails codebase also got a cleanup pass [4] extracting duplicate cookie test patterns into a helper method, and minor grammar fixes [5] shipped without fanfare. Across the ecosystem, tailwindcss-rails bumped its GitHub Actions checkout dependency [6] to 6.0.3, and Xavier's profile got a fresh photo on rails.org [7].
Action items
- → Review cache usage for delete_multi double-calls with reused arrays rails/rails [plan]
- → Pull the latest Rails main if you maintain cache adapters rails/rails [plan]
References
- [1] Don't mutate the names array passed to Cache::Store#delete_multi rails/rails
- [2] Merge pull request #57647 from 55728/fix-delete-multi-mutating-names rails/rails
- [3] Add test coverage for the remaining Type::Date cast branches rails/rails
- [4] Little clean up in cookies_test.rb ↗ rails/rails
- [5] Minor Grammar Fixes rails/rails
- [6] build(deps): bump actions/checkout from 6.0.2 to 6.0.3 in the github-actions group ↗ rails/tailwindcss-rails
- [7] Update Xavier's profile pic rails/website
FAQ
- What changed in Rails on June 11, 2026?
- A destructive bug in Cache::Store#delete_multi that silently mutates caller arrays and breaks subsequent calls just got merged into Rails.
- What should Rails teams do about it?
- Review cache usage for delete_multi double-calls with reused arrays • Pull the latest Rails main if you maintain cache adapters
- Which Rails repositories shipped on June 11, 2026?
- rails/rails, rails/tailwindcss-rails, rails/website