Skip to content

Support setting false-y values for cache_client#23

Open
danielwestendorf wants to merge 1 commit intonickelser:masterfrom
danielwestendorf:master
Open

Support setting false-y values for cache_client#23
danielwestendorf wants to merge 1 commit intonickelser:masterfrom
danielwestendorf:master

Conversation

@danielwestendorf
Copy link

Given an app that

  • Does not use this gem's disabled? functionality
  • Rails.cache is a file store

This gem then prepends every job execution with a file read. This isn't a big deal, but setting ActiveJob::TrafficControl.cache_client = false has no effect, despite the library having support for a false-y cache_client. This is due to usage of ||= and the default of Rails.cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant