Revert "GRN2-xx: Migration Error now returns 500 and added the option to disable cache (#770)" (#774)

This reverts commit 9bd5a659d5.
This commit is contained in:
Jesus Federico
2019-08-29 12:08:28 -04:00
committed by GitHub
parent 459d0ed582
commit 1eddd564d5
2 changed files with 1 additions and 5 deletions

View File

@ -28,8 +28,7 @@ module BbbApi
raise "Provider not included." if !provider || provider.empty?
cached_provider = Rails.cache.fetch("#{provider}/#{route}")
# Return cached result if the value exists and cache is enabled
return cached_provider if !cached_provider.nil? && Rails.configuration.enable_cache
return cached_provider unless cached_provider.nil?
# Build the URI.
uri = encode_bbb_url(