6064: rollback cache update so that it can be done in a separate branch.
[arvados.git] / apps / workbench / app / models / arvados_base.rb
index 4b0a6cf3d03ab8b8f4d8c82e1dda22acb9116244..2fca11ecf13f75fb1b5a3838659da64665d40fbf 100644 (file)
@@ -102,7 +102,7 @@ class ArvadosBase < ActiveRecord::Base
     # Only do one lookup on the API side per {class, uuid, workbench
     # request} unless {cache: false} is given via opts.
     cache_key = "request_#{Thread.current.object_id}_#{self.to_s}_#{uuid}"
-    if false != opts[:cache]
+    if opts[:cache] == false
       Rails.cache.write cache_key, arvados_api_client.api(self, '/' + uuid)
     end
     hash = Rails.cache.fetch cache_key do