forked from External/greenlight
GRN2-xx: Migration Error now returns 500 and added the option to disable cache (#776)
* Added the option to disable cache * Remove put statements
This commit is contained in:
committed by
Jesus Federico
parent
1eddd564d5
commit
02413cefb2
@ -28,7 +28,8 @@ module BbbApi
|
||||
raise "Provider not included." if !provider || provider.empty?
|
||||
|
||||
cached_provider = Rails.cache.fetch("#{provider}/#{route}")
|
||||
return cached_provider unless cached_provider.nil?
|
||||
# Return cached result if the value exists and cache is enabled
|
||||
return cached_provider if !cached_provider.nil? && Rails.configuration.enable_cache
|
||||
|
||||
# Build the URI.
|
||||
uri = encode_bbb_url(
|
||||
|
Reference in New Issue
Block a user