nickelser / activejob-traffic_control

Rate limiting/job enabling for ActiveJob using distributed locks in Redis or Memcached.
298 stars 27 forks source link

Support setting false-y values for cache_client #23

Open danielwestendorf opened 1 year ago

danielwestendorf commented 1 year ago

Given an app that

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.