We had 21 awesome people who helped make Rails better this week. Two of them contributed for the first time ever! Would you like to help as well? Head over to the ๐ย issues list.
A new method write_multi has been added to the cache stores which writes multiple cache entries at once.
For eg. Rails.cache.write_multi foo: 'bar', baz: 'qux'
The default implementation just calls write_entry one by one for each entry but specific cache stores can override this behavior as per their ability of doing bulk writes.
This change fixes an issue with collection checkboxes and radio boxes where clicking on the labels was not selecting the options because the input elements did not have proper id attribute with respect to their labels.