-
- Downloads
Allow ReactiveCaching to support nil value
When :calculate_reactive_caching returns a nil value this caused ReactiveCaching to schedule a worker every time the code using :with_reactive_cache was called. This issue caused an increasing amount of Sidekiq jobs being created continuously. Implementing this fix behind feature flag :reactive_caching_check_key_exists
Showing
- app/models/concerns/reactive_caching.rb 5 additions, 1 deletionapp/models/concerns/reactive_caching.rb
- changelogs/unreleased/allow-reactive-caching-of-nil.yml 5 additions, 0 deletionschangelogs/unreleased/allow-reactive-caching-of-nil.yml
- spec/models/concerns/reactive_caching_spec.rb 29 additions, 27 deletionsspec/models/concerns/reactive_caching_spec.rb
- spec/support/helpers/reactive_caching_helpers.rb 1 addition, 1 deletionspec/support/helpers/reactive_caching_helpers.rb
Please register or sign in to comment