Commit cd94f1c5 authored by Ryan Cobb's avatar Ryan Cobb

Fallback to with_reactive_cache if not in development

parent 2d98e2a3
......@@ -124,6 +124,8 @@ module ReactiveCaching
# This method is used for debugging purposes and should not be used otherwise.
def without_reactive_cache(*args, &blk)
return with_reactive_cache(*args, &blk) unless Rails.env.development?
data = self.class.reactive_cache_worker_finder.call(id, *args).calculate_reactive_cache(*args)
yield data
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment