INNER CODE UNIT · Ruby
self
zendesk/samson · config/application.rb:70
def self.deprecated_url(var)
url = ENV[var].presence
return url if !url || url.start_with?('http')
raise "Using deprecated url without protocol for #{var}"
end
end
config.eager_load_paths << "#{config.root}/lib"
case ENV["CACHE_STORE"]
when "memory"
config.cache_store = :memory_store # to debug cache keys, bundle open activesupport -> active_support/cache.rb#log
when "memcached"
require_relative "initializers/sockify"
options = {
value_max_bytes: 3000000,
compress: true,
expires_in: 7.days,