mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
f08bf726d3
- When the local cache exists (during the request lifecycle), the entry returned from the LocalStore is passed as a reference which means mutable object can accidentaly get modified. This behaviour seems unnecessarily unsafe and is prone to issues like it happened in our application. This patch dup the `Entry` returned from the cache and dup it's internal value. |
||
---|---|---|
.. | ||
behaviors | ||
stores | ||
behaviors.rb | ||
cache_entry_test.rb | ||
cache_key_test.rb | ||
cache_store_logger_test.rb | ||
cache_store_namespace_test.rb | ||
cache_store_setting_test.rb | ||
local_cache_middleware_test.rb |